Hiding Add to Cart Button When not login

Phoca Cart - complex e-commerce extension
gscanterbury
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 21 May 2019, 00:08

Hiding Add to Cart Button When not login

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hiding Add to Cart Button When not login

Post 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:

Image

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
If you find Phoca extensions useful, please support the project
Post Reply