Greying out "out-of-stock" product variations with custom stock quantity reduction in WooCommerce
I've used the awesome snippet of https://jeroensormani.com/custom-stock-quantity-reduction/ to add an additional setting to variations that reduces the main inventory stock by the set amount in the variation. The problem I'm facing now is that it doesn't check if those variations…