Page 1 of 1
Hiding Add to Cart Button When not login
Posted: 21 May 2019, 00:13
by gscanterbury
Is there a way to hide "add to cart" button when a user isnt login?
I have the price set as 0 and the customer group price set for the product.
This was done so that the price would only be displayed only when a user is logged in.
Re: Hiding Add to Cart Button When not login
Posted: 25 May 2019, 13:51
by Jan
Hi, for now it is implemented in Beta version (3.2.0), so it will be set in 3.2.0 Stable. It can be tested now:
https://github.com/PhocaCz/PhocaCart/re ... 0Beta4.zip
(but it should be tested on test websites only so there will be no problem with updating - from beta to stable)
I hope I will release the stable soon.
In Options, you can decide who will be able to see the "add to cart" button:
So you can select following option values:
- no one - no one will see "add to cart" button - catalogue
- all - eshop
- based on access levels - when set this opton, you can then select which access level can see the add to cart (so when "registered" set, then all will see the button except the guests (not logged in))
- or based on Phoca Cart customer groups
Jan