ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - AJAX bubble question...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AJAX bubble question...

 Post Reply Post Reply
Author
Message
James View Drop Down
Newbie
Newbie


Joined: 26-January-2007
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote James Quote  Post ReplyReply Direct Link To This Post Topic: AJAX bubble question...
    Posted: 23-February-2007 at 5:49am

Hi,
I have been editing xml_getPrdInfo.asp (the file that controls which information appears in the AJAX bubbles) and I have a question about modifying a particular piece of code... I only want the "Currently Out of Stock" message to appear in the bubbles ONLY if a customer is logged in... I know the code I need to edit is this:

'Show "Out of Stock" message
if (scShowStockLmt=-1 AND CLng(pStock)<1 AND pserviceSpec=0 AND pNoStock=0 AND pcv_intBackOrder=0) OR (pserviceSpec<>0 AND scShowStockLmt=-1 AND iBTOOutofstockpurchase=-1 AND CLng(pStock)<1 AND pNoStock=0 AND pcv_intBackOrder=0) then
 tmpList=tmpList & dictLanguage.Item(Session("language")&"_viewPrd_7") & "<br>" & vbcrlf
end if

...but I just can't figure out how to amend this code... Can anybody please help??

Back to Top
netprofits View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 05-January-2006
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote netprofits Quote  Post ReplyReply Direct Link To This Post Posted: 23-February-2007 at 6:24am
Hi James, try the following which checks if a customer is logged in. Note checking of the idCustomer session variable:

if ((scShowStockLmt=-1 AND CLng(pStock)<1 AND pserviceSpec=0 AND pNoStock=0 AND pcv_intBackOrder=0) OR (pserviceSpec<>0 AND scShowStockLmt=-1 AND iBTOOutofstockpurchase=-1 AND CLng(pStock)<1 AND pNoStock=0 AND pcv_intBackOrder=0)) AND (session("idCustomer")<>"0" AND session("idCustomer")<>"") then
 tmpList=tmpList & dictLanguage.Item(Session("language")&"_viewPrd_7") & "<br>" & vbcrlf
end if
NetProfits Internet Consulting

Certified ProductCart Developer

Our Site
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.