Page 1 of 1

Hide products (attributes/variant) not in stock

Posted: 06 Feb 2021, 11:21
by jpeters
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.

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

Posted: 06 Feb 2021, 12:10
by Nidzo
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

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

Posted: 07 Feb 2021, 14:33
by Jan
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

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

Posted: 07 Feb 2021, 15:14
by jpeters
can you explain. i do not follow what you are saying whit this.
i have this option turned on..

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

Posted: 08 Feb 2021, 01:50
by Jan
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