The item with "out of stock" status can be added to the cart

Phoca Cart - complex e-commerce extension
User avatar
sulpher
Phoca Member
Phoca Member
Posts: 41
Joined: 28 Feb 2017, 09:45

The item with "out of stock" status can be added to the cart

Post by sulpher »

Hi Jan,
I set up "out of stock" status to the item and noticed I still can add it to the cart and see the item at the checkout page.
Perhaps it would be good not to display "add to cart" button for out of stock items?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The item with "out of stock" status can be added to the cart

Post by Jan »

Hi, which version of Phoca Cart do you use, this was added to version 3.0.3:

Image

Jan
If you find Phoca extensions useful, please support the project
User avatar
sulpher
Phoca Member
Phoca Member
Posts: 41
Joined: 28 Feb 2017, 09:45

Re: The item with "out of stock" status can be added to the cart

Post by sulpher »

Hi Jan,
I am using the latest version 3.0.3. No attributes are used, just a product with the price and "out of stock" status.
Perhaps I missed some settings... Is there a special option in global settings that need to be enabled to avoid adding "out of stock" products to the cart?
Thank you.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The item with "out of stock" status can be added to the cart

Post by Jan »

If you enable stock checking, you can add the item to cart (when the button add to cart will be displayed) but in checkout you get the information that the item cannot be ordered and you cannot go through the checkout.

Jan
If you find Phoca extensions useful, please support the project
User avatar
sulpher
Phoca Member
Phoca Member
Posts: 41
Joined: 28 Feb 2017, 09:45

Re: The item with "out of stock" status can be added to the cart

Post by sulpher »

Oh, I didn't know that... Thanks for the advice.
Now I found the param called Hide Add To Cart Button (Product Out Of Stock) and disabled it.
As a result, the buy button is no longer appears on a product page, but it is still available in the category (list of products).
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The item with "out of stock" status can be added to the cart

Post by Jan »

Hi, see the screenshot above, the button is hidden in category view when set in Options :idea:

Image
If you find Phoca extensions useful, please support the project
User avatar
sulpher
Phoca Member
Phoca Member
Posts: 41
Joined: 28 Feb 2017, 09:45

Re: The item with "out of stock" status can be added to the cart

Post by sulpher »

Sorry for the late reply.
The problem is still actual.

Product settings:
Image

Global configuration:
Image

No add to cart button at product page:
Image

But the add to cart button is still displays in the list of products:
Image

Info:
Phoca Cart 3.0.3
Joomla 3.8.6
No layout override via Joomla template is used
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: The item with "out of stock" status can be added to the cart

Post by Jan »

Hi, is:

Display Stock Status parameter enabled?
Image
If you find Phoca extensions useful, please support the project
Post Reply