I want to hide product variants that are out of stock from the search filter on the side. It currently is showing all products that have those variants, even if they are out of stock.
I currently have my shop setup in a way that I have 2 collections for each product set. One collection that contains all cards, and another that only shows products that are in stock. I use the second collection to display to customers, that way it’s showing what I have available all the time, and gets rid of the “available” filter. I find that this way it helps out with the flow, and easier to manage the website for users.
When I’m looking through my “Pokemon Singles” and trying to use the search filters, the filters show all products that are currently listed that have that variation, even if it’s not in stock. Example:
I want it to show only available product variations. In this case, it should be Holofoil (3), Reverse Holofoil (10), Standard (120).
Note: I already hid the pills on the product page if the product variant was out of stock.
Additionally, is there any way to hide a filter if all the products being shown contain the same metafield/product option? Example:
All the products have the metafield “Scarlet & Violet” but I want the “Expansion” filter to be gone if they all contain the same metafield/product option.
Website: https://crithit.ca/
Password: Saoshi
I hope that makes sense - and I’m sure this is a tricky request, I’m not sure if it can be done, however your help is greatly appreciated!

