Hello,
WooCommerce has an option to hide out-of-stock products from the catalog, it works for the variation swatches too. You just need to enable this option in WooCommerce > Products > Inventory. It is the option “Out of stock visibility”.
This is not an option. For many stores, keeping the product visible is part of a strategy.
For example, imagine I’m buying a t-shirt that comes in 3 sizes: S, M, L.
If size M runs out and simply disappears, the consumer may be misled into thinking that size S or size L are their only options. If the product arrives and doesn’t fit, the store has to pay for reverse logistics, which is a loss.
Also, it is common for stores to use a feature to be notified when a product that was out of stock returns. This is what this plugin here does: https://wordpress.org/plugins/back-in-stock-notifier-for-woocommerce/
This helps A LOT to identify demand and also to obtain leads at a time of low stock that can be commercially exploited when stock returns.
In this model store I did a test: https://modeloloja.wjkmarketing.com.br/loja/camiseta-branca/
Notice how the “GG” variation is out of stock and the customer only notices it after clicking on the variation. This is frustrating.
This is a feature that other plugins of the same type offer, note: https://ps.w.org/woo-variation-swatches/assets/screenshot-5.jpg?rev=2462963
But I really liked your plugin, how simple and functional it is. I would love to use your plugin on my clients’ stores, but unfortunately this feature is crucial.
Please consider implementing at least a CSS class for out of stock variations. I am using your solution on some client sites, but I will be forced to switch to another plugin if this is not implemented, unfortunately 🙁