Hide products (attributes/variant) not in stock

Phoca Cart - complex e-commerce extension
jpeters
Phoca Professional
Phoca Professional
Posts: 189
Joined: 31 Dec 2020, 09:46

Hide products (attributes/variant) not in stock

Post by jpeters » 06 Feb 2021, 11:21

Hello,
i have a product with attributes and advanced stock management.
main product has no stock. stock is based on attributes
attributes are a pull down selection box.
the stock is managed by advanced stock and price management.
buy button is hidden when item is not in stock.
when i set hide products not in stock it does not show the product at all.
when the product is visable, al attributes are selectable.. based on stock you can order or not.
would be nice to hide variants that are not in stock.
so, when set hide product not in stock it wil check main stock and/or variant stock.
if one of the variants is in stock it wil show the product and with only variants in stock are selectable.

can this be done?.. if so the how to.. otherwise add this as a feature..
defined product based.. some products are are ordable (even out of stock) other products not.
so phoca cart general setting and you can define on group or product define specific.

User avatar
Nidzo
Phoca Member
Phoca Member
Posts: 39
Joined: 07 Nov 2018, 14:55

Re: Hide products (attributes/variant) not in stock

Post by Nidzo » 06 Feb 2021, 12:10

Good point. Tried changing options in Advanced stock options but not success.
I saw pretty good example on Ali Express, opacity of variants of the item that out of stock is decreased and can't be selected
Image

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

Re: Hide products (attributes/variant) not in stock

Post by Jan » 07 Feb 2021, 14:33

Hi, for now, you can hide the non existing combination - the main product - for example if there is a t-shirt with size XL and color blue, there is no t-shirt without color and without size (main product) - in such case you can disable it with this parameter: Remove Select Option:

Image

But there is no option to hide the zero stock value options.

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

jpeters
Phoca Professional
Phoca Professional
Posts: 189
Joined: 31 Dec 2020, 09:46

Re: Hide products (attributes/variant) not in stock

Post by jpeters » 07 Feb 2021, 15:14

can you explain. i do not follow what you are saying whit this.
i have this option turned on..

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

Re: Hide products (attributes/variant) not in stock

Post by Jan » 08 Feb 2021, 01:50

When a product has attributes, it includes e.g. select box of attributes. So you can select the attribute.

If this option is enabled, the "select attribute" value in select box is removed, which means, user can only see selected value in attributes select box (there is no option to select "nothing" ... "nothing" means the main product")

Example: T-Shirt

You have a T-Shirt with attributes color and size and if this parameter is disables, you can theoretically select main product - T-Shirt without color and size. If you enable it, there is no such option more as color or size - the default option will be automatically set. So this parameter prevents from ordering main product which does not exist.

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

Post Reply