% 'This file is part of ProductCart, an ecommerce application developed and sold by Early Impact LLC. ProductCart, its source code, the ProductCart name and logo are property of Early Impact, LLC. Copyright 2001-2003. All rights reserved. You are not allowed to use, alter, distribute and/or resell any parts of ProductCart's source code without the written consent of Early Impact. To contact Early Impact, please visit www.earlyimpact.com. %> <% response.Buffer=true %> <% ' Check if the store is on. If store is turned off display store message If scStoreOff="1" then response.redirect "msg.asp?message=83" End If '<--RP--> If RewardsActive=True then If (Request("refby") <> "") And (RewardsReferral=True) Then Session("referral")=CLng(Request("refby")) End If End if '<--RP--> '---> start store session if not aleady initiated <---- if session("idcustomer")="" then session("idPCStore")= scID session("idCustomer")=CLng(0) session("idAffiliate")=CLng(1) session("language")=Cstr("english") session("pcCartIndex")=CLng(0) dim pcCartArray(100,35) session("pcCartSession")=pcCartArray end if if session("idPCStore")<>"" AND session("idPCStore")<>scID then session.Abandon() session("idPCStore")= scID session("idCustomer")=CLng(0) session("idAffiliate")=CLng(1) session("language")=Cstr("english") session("pcCartIndex")=CLng(0) redim pcCartArray(100,35) session("pcCartSession")=pcCartArray end if ' Check to see if the user is updating the product after adding it to the shopping cart tIndex=0 tUpdPrd=request.QueryString("imode") if tUpdPrd="updOrd" then tIndex=request.QueryString("index") end if ' Check to see if the user was referred by an Affiliate web site if request.querystring("idAffiliate")<>"" and isNumeric(request.querystring("idAffiliate"))then session("idAffiliate")= request.querystring("idAffiliate") end if dim query, conntemp, rs pIdProduct=request.QueryString("idProduct") if trim(pIdProduct)="" or IsNumeric(pIdProduct)=false then response.redirect "msg.asp?message=85" end if %> <% pcv_IDProduct=request("IDProduct") pcv_IDCategory=request("IDCategory") IF pcv_Active="1" THEN call opendb() query="SELECT pcRE_IDProduct FROM pcRevExc WHERE pcRE_IDProduct=" & pcv_IDProduct set rs=server.CreateObject("ADODB.RecordSet") set rs=connTemp.execute(query) if rs.eof then Prv_Accept=1 else Prv_Accept=0 set rs=nothing call closedb() response.redirect "viewPrd.asp?IDProduct=" & pcv_IDProduct & "&IDCategory=" & pcv_IDCategory end if call closedb() IF Prv_Accept=1 THEN Call CreateList() call opendb() query="SELECT description FROM products WHERE idproduct=" & pcv_IDProduct set rs=server.CreateObject("ADODB.RecordSet") set rs=connTemp.execute(query) pcv_PrdName=rs("description") set rs=nothing call closedb() %>
<%=dictLanguage.Item(Session("language")&"_prv_1")%>
<%=dictLanguage.Item(Session("language")&"_prv_10")%> <%=pcv_PrdName%> - <%=dictLanguage.Item(Session("language")&"_prv_4")%>