Hi,
tl;dr - how to prevent Shopify from showing people ‘continue selling when out of stock’ products when there is no variant for the selected size?
We’ve just migrated our site to Shopify. We sell posh shoes, we have about 1800 products live at any given time, in a variety of sizes. Each product is one colour, and can have between 1 and 30 variants for various sizes.
We use the Shoe Size metaobject for size. They are grouped by base shoe size for filtering.
Here is our collection the for ‘Loake’ brand, filtered for size 13. I have (via a dodgy facets.js hack because Shopify is really weird about showing people out of stock results) forced these collections to only show products which have the customer’s size available: Loake shoes and boots – Herring Shoes
There are 6 results. The problem is that one of them, the Loake Edward in tan, is not available in a size 13. There is no variant for size 13, and there never has been.
The issue is that this shoe is ticked as ‘continue selling when out of stock’ for all of it’s variants (7 to 11), because it’s a product that we order from the manufacturer, they make it, send it to us, we send it on. We call it ‘ghost’ stock, other people might call it pre-order or JIT or whatever.
Shopify handles this by letting people buy it if ‘continue selling when out of stock’ is ticked, even if there’s no inventory. This seems ideal, people can order it and our existing backoffice systems (integrated via graphQL) handle the
Again, I repeat - it DOES NOT HAVE a size 13.
But because ‘continue selling when out of stock’ is ticked for the sizes it does have, Shopify is just showing it to anyone even if the selected filters should really exclude it.
We’ve had two customers complain about this.
How do I prevent this from happening? It seems like a bug.
Many thanks,
Gareth