Out of stock product variations are still selectable
-
Hi,
I want to grey out of stock variations of variable products on the product page.
Currently the out of stock variations are still fully selectable. Once you click on the add to bag button it says ‘product unavailable’ but I want out of stock variations behave like out of stock products and the variation swatch to be disabled.
Attachments:
You must be
logged in to view attached files.
Hello,
Navigate to Products > Attributes > edit attribute > Choose the disabled swatch. The disabled Swatch style is for the variants of the Products that are disabled, not for the Out of Stock variants. So, you need to have the variant of the Product not checked with the Enable option on it and then the Disabled Swatch style will work accordingly.
See these images for reference:
https://snipboard.io/BMehIF.jpg
https://snipboard.io/NbOzfP.jpg
Additionally, If you want it to work with out-of-stock variations, navigate to WooCommerce > Settings > Products > Inventory > enable the option“Hide out of stock items from the catalog,” then it will work for out-of-stock variations.
Best Regards
Does this mean i have to uncheck the ‘Enabled’ option for all out of stock variations? That requires manual work and does not make sense.
Alternatively, the WooCommerce > Settings > Products > Inventory > option“Hide out of stock items from the catalog,” disables all out of stock products from the shop page, which i do not want. I only want to hide/grey out the out of stock variants so customers can not click on it.
Hello,
Unfortunately, WoodMart does not have a built-in option to automatically grey out or disable variation swatches based on stock status. The disabled swatch style only works for variations that are manually disabled, not for out-of-stock variations. This is the way it works.
Best Regards