Ajax product filtering with variations shows sold out products
-
Hi, when I filter variable products with the ajax filter, the results will also show products where that particular variation is already out of stock.
So for example I filter on size 41 on the category page:
https://www.olthuis-schoenen.nl/categorie/heren/?filter_maat=41-eu-7-uk
At that moment, the products show but for example for this product size 41 is already out of stock:
https://www.olthuis-schoenen.nl/shop/heren/heren-lage-schoenen/berkelmans-heren-lage-schoenen-sebring-201002511-navy-black-535/
In the WooCommerce settings I have enabled the option “hide out of stock items”.
Am I missing some setting here, or is this expected behaviour? For our customers it is quite confusing: they filter on a certain size, to find out that that size is out of stock…
Hello,
Thank you very much for choosing our theme and for contacting us.
This is Woocommerce functionality and our theme does not influence that. You can check it in the Storerfront theme and see the same. You can disable the variation manually.
Best Regards
Hi Sander,
I can see you have fixed it at your website. How did you do it? Or with what additional plugin?
Best regards,
Rob
Hi Rob,
I haven’t fixed it, since it is a bug/feature in WooCommerce and not in the theme. Filtering on size shows all shoes where that size was ever offered, even when the size is sold out.
Best regards,
Sander
Hello,
Yes, this is the Woocommerce functionality and our theme does not influence that. You can check the issue on the Storefront theme and see the same.
Best Regards