Hide products (attributes/variant) not in stock

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

Hide products (attributes/variant) not in stock

Post 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.
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 268
Joined: 07 Nov 2018, 14:55

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

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

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

Post 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
If you find Phoca extensions useful, please support the project
jpeters
Phoca Professional
Phoca Professional
Posts: 225
Joined: 31 Dec 2020, 09:46

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

Post by jpeters »

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: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

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