Skip to Content
0
Former Member
Feb 16, 2009 at 04:20 PM

How can I prevent ordering unless a user is logged in?

18 Views

I am trying to modify a WebTools system that any visitor can browse the products but ordering can only be carried out by logged in users. Is there some existing piece of code I can wrap around the "add to basket" icon, for example, that will only display it when a user is logged in?

I appreciate I may have to write some custom code which I have no problem in doing. What variables to I need to check for to find out if a user is logged in?

Thanks for any help.

Regards

C