Exclude products with inactive variations from filters
-
Today, if I create a “Size” filter in the widgets, it shows me the products even if a size exists but has been deactivated. So in addition to checking that the size is available, you also need to check that it’s not deactivated.
There is the “active” chackbox in the variations on woocommerce. If the checkbox is deactivated it must not appear in the filters
Hello,
Sorry to say but we didn’t seem to understand your concern. Could you please elaborate on your concern more with some useful Screenshots so that we can better understand and assist you accordingly?
Best Regards.
Okay, so let’s go step by step with an example:
1) I have a variable product with different sizes. I have disabled some sizes (when they come back they will be available so I leave the stock on available). That size no longer appears on the site when it’s disable on the product page. Everything is ok here.
https://i.imgur.com/AVypxPN.png
2) I go to the shop and in the filters I select size 34.5. The previous product continues to appear despite the fact that I have deactivated it.
https://i.imgur.com/lmSDHWS.png
I understood that this occurs because the variation appears to be available, however in the filters one should add in addition to the check on availability anhce that the variation is active
Hello,
Please make a full backup of your site and check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand how it works.
Best Regards.