Forum
Perch shop stock level search results
Is it possible to filter product results based on stock_level? showall doesn't display a stock_level.
Is it possible to filter product results based on stock_level? showall doesn't display a stock_level.
Do you mean search or a listing? If it's a listing then that should be possible, yes.
For a search. So am guessing the answer is nope.
Right, you can't filter with a search.
Hey Drew. What's stock_status? perch:showall shows that in every product with the results. Can we use that to filter by stock?
That's the flag that sets the state of the stock level, e.g. unlimited, on backorder etc
So we could use that to filter by stock level right? and what does each number or stock status mean or where can we read about that?
There's nowhere to read about it - those are internal references. Ideally it should be returning a slug of the status, but I guess no one has used it before.