Filter variable products and showing whats in stock for that attribute

A client has a store with variable products. We have “Size” set as an attribute.
My understanding is that a product is ‘Out of Stock’ when all variations have been sold.

What we are trying to do is ‘filter product by size’ so the customer can see only the variations that are in stock.

So current in id product A has 1 stock item in size S, M, and L. It appears on the shop page and if use the filter widget then will appear is filter by size S,M and L.

If I sell my stock in M which means its stock . It still appears in filter by size M and when I go in and try to buy it then says out of stock.
I have reviewed several plugins and this seems to be the case with them all.

Can anyone steer me in the direction of a function which allows me to override this and filter by variation in stock OR is this not possible – should I be creating search strings based on current variation stock.

Bascially we want to find a one click solution so a customer can see what is actually in stock in a size in a category.

We have approx 50-70 products but often only have 2 or 3 of each item in stock – its very boutiquey!

Help or ideas would be appreciated as Id like to resolve this as part of my own learning

Read more here:: Filter variable products and showing whats in stock for that attribute

Leave a Reply

Your email address will not be published. Required fields are marked *