ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Hide "Add To Cart" button until logged in
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hide "Add To Cart" button until logged in

 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: Hide "Add To Cart" button until logged in
    Posted: 26-January-2007 at 5:47am
Hi, I wish the "Add To Cart" button to be unavailable until users have logged in.
Please can anybody tell me how to do this????
Back to Top
NWilliams View Drop Down
Newbie
Newbie


Joined: 19-November-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote NWilliams Quote  Post ReplyReply Direct Link To This Post Posted: 28-January-2007 at 9:59pm
You need to make an if clause where the add to cart button is in the html and only write the html if session("idCusomter")<>"" or similar.  Check the code in the stock footer.asp file that determines whether it should show the 'account home' links and lift the determinant from there and apply it in the above case.
Back to Top
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 Posted: 29-January-2007 at 6:43am

Can anyone help me with this code please... I need to modify it so that the Add To Cart button only shows when someone is logged in........

     ' // show add to cart
     
       '///////////////// ////////////////////////////////////////////
       '//  &nb sp;   ADD TO CART         &n bsp;//
       '///////////////// ////////////////////////////////////////////        
       '***************** ********************************************
       ' START: Add to Cart
       '***************** ********************************************
       pcs_AddtoCart
       '***************** ********************************************
       ' END: Add to Cart
       '***************** ********************************************

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: 29-January-2007 at 9:16am

As nwilliams mentioned above, you can use the code from footer.asp something like this...


if session("idCustomer")>"0" then
  pcs_AddToCart
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.086 seconds.