Hi..
I can't seem to wrap my head around this.
I'm using Repositories > Index & Queries to filter products on frontend.
So I'm using Facets for choosing "Clothes sizes" S / M / L.
When a user searches for size "M" I want it to show the products that have M sizes in stock.
My query looks like this now:
[Size variant group] | MatchAny | [Size parameter(s) chosen by the user] |
Stock (System.Double) | GreaterThan | 0 |
It gets all products that have the chosen sizes and are also in stock - but I think the stock field is the stock sum of all variables.
How do I set up the query, so I get the products that has the chosen size in stock?
Hope it makes sense! :)