Jump to content

Disable [ADD TO CART] button for unregistered visitors


paoltaia

Recommended Posts

Hi all,
I was wondering if someone could help me with this:

I'd like to disable the ADD TO CART button to all unregistered visitors so that they have first to register and log in before actually adding any product to the cart.

Is this possibile?

Thanks in advance!

Paolo

Link to comment
Share on other sites

  • 5 weeks later...
All of the ones with "Add to cart" buttons. It is product.tpl, product-list.tpl and module templates too depending on which ones you have installed.


Thanks for the info. I had found the correct files and placed the code in the right spots, but after refreshing the page, the entire center and right columns would disappear. I subsequently found that I also needed to add a line of code to the product.php file, then everything reappeared and the add cart button had the behavior I was looking for.
Regards
Jim
  • Like 1
Link to comment
Share on other sites

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...