2 replies [Last post]
giorgio79@drupal.org's picture
Offline
Joined: 02/02/2008
Juice: 280
Was this information Helpful?

Hi,

I disabled anonymous checkout, and noticed that users can still add products to carts via add to cart links.

Would you know a simple hack to redirect to the login page or access denied page via the add to cart links for anon users?

Cheers,
G

giorgio79@drupal.org's picture
Offline
Joined: 02/02/2008
Juice: 280
Re: Add to cart redirect for anonymous users?

Sorry, I just realised I can do an if/else in the tpl files Smiling

kangaroobin's picture
Offline
Joined: 04/20/2009
Juice: 10
how?

how do you do this?