Quote from Mark on March 12, 2026, 17:02
I’m experiencing an issue with the “In Stock” filter button in the product filter on my WooCommerce store.
The expected behavior is that when a customer selects a specific variation (for example, a size) and then clicks “In Stock”, the filter should display only products where that specific variation is actually available (stock quantity > 0).
However, this is not what happens.
Example:
I have products with size variations (XS, S, M, etc.). Some products have the XS variation defined, but the stock quantity for XS is 0 (out of stock).
When I:
Select the XS size in the filter
Click “In Stock”
the filter still shows all products that simply have the XS variation, even if the XS variation is out of stock.
Expected behavior:
The filter should show only products where the selected variation (e.g., XS) has stock greater than 0.
Current behavior:
The filter shows all products that contain the XS variation, regardless of whether that variation is actually in stock.
Question:
Is there a way to make the “In Stock” filter work based on the stock status of the selected variation, not just on the existence of the variation?
I’m experiencing an issue with the “In Stock” filter button in the product filter on my WooCommerce store.
The expected behavior is that when a customer selects a specific variation (for example, a size) and then clicks “In Stock”, the filter should display only products where that specific variation is actually available (stock quantity > 0).
However, this is not what happens.
Example:
I have products with size variations (XS, S, M, etc.). Some products have the XS variation defined, but the stock quantity for XS is 0 (out of stock).
When I:
Select the XS size in the filter
Click “In Stock”
the filter still shows all products that simply have the XS variation, even if the XS variation is out of stock.
Expected behavior:
The filter should show only products where the selected variation (e.g., XS) has stock greater than 0.
Current behavior:
The filter shows all products that contain the XS variation, regardless of whether that variation is actually in stock.
Question:
Is there a way to make the “In Stock” filter work based on the stock status of the selected variation, not just on the existence of the variation?