extended behavior of add to cart button

Phoca Cart - complex e-commerce extension
kami202
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 May 2023, 13:43

extended behavior of add to cart button

Post by kami202 »

Hello,
If my products will come to an availibility = 0 I want to give the customer an option to request information about when the product will be available again.
(how) is it possible to change the "add to cart" button to something like a "request for availability" button?
Maybe after clicking the "request information" button a window form with the requested product and some form fields for the customer to enter some information.
Is there any chance to do this, maybe using a 3rd party addon or is this something for a wish list?
Thanks in advance!

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: extended behavior of add to cart button

Post by Jan »

Hi, there is "Ask Question" button.
It can depend on if the "Add to Cart" button is displayed or not:

Image

So you can set that if add to cart button is not displayed, this button is displayed there. When e.g. the product is out of stock you can set that for this product, the button will be not displayed:

Image


Image


BTW don't forget to enable the feature with following parameter:
Image

BUT, there were some changes, so this will work in latest Beta, please test it with this version:
https://github.com/PhocaCz/PhocaCart/re ... 8Beta2.zip
Jan
If you find Phoca extensions useful, please support the project
kami202
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 May 2023, 13:43

Re: extended behavior of add to cart button

Post by kami202 »

Hello Jan,
thanks for the support, much appreciated!
I installed the beta version. Then I set everything like needed and it works expect of the category view.
In the products detail view there is the "ask question" button instead of the "add to cart" button. Perfekt!
In the category view the "ask question" button is missing.
Ask a question is activated, cart button is set to only be shown when quantity is greater 0.
In the category view for all available products has the add to cart button shown.
unavailable product don't have a add to cart nor a ask question button.
After clicking one of the unavailable products the ask questin button is shown in the detail page.
Is there maybe one of my settings missing or does this not work in the beta version?
Thanks in advance!
Matthias
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: extended behavior of add to cart button

Post by Jan »

Hi, try to test:
https://github.com/PhocaCz/PhocaCart/re ... 8Beta3.zip

It should be OK even in category/items view:

Image

Jan
If you find Phoca extensions useful, please support the project
kami202
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 May 2023, 13:43

Re: extended behavior of add to cart button

Post by kami202 »

Hello Jan,
it works with beta3!
Thank you for that outstanding support!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: extended behavior of add to cart button

Post by Jan »

Hi, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply