Hide "Add To Cart" button until logged in |
Post Reply |
Author | |
James
Newbie Joined: 26-January-2007 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
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???? |
|
NWilliams
Newbie Joined: 19-November-2006 Location: United States Status: Offline Points: 0 |
Post Options
Thanks(0)
|
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.
|
|
James
Newbie Joined: 26-January-2007 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
|
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........ |
|
netprofits
Certified ProductCart Developers Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
|
As nwilliams mentioned above, you can use the code from footer.asp something like this...
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |