How do I hide product variants that are out of stock from the filters in the Search & Discovery App?

Topic summary

A Shopify store owner is trying to hide out-of-stock product variants from appearing in the Search & Discovery App’s filter sidebar.

Currently, the filters display all variant options (like “Rare Holo” or “Ultra Rare”) even when those specific variants are unavailable, which creates confusion for customers. The user wants filters to show only in-stock variants with accurate counts.

Additional request: Hide entire filter categories (like “Expansion”) when all displayed products share the same metafield value, reducing redundant filtering options.

Current workaround: The store uses two collections per product set—one showing all items and another filtered to in-stock only—to manage availability display. Product page variant pills are already hidden when out of stock.

Status: The issue remains unresolved. One user offered to help with a specific page example (available-scarlet-violet-singles collection), and another community member is following the thread with the same problem.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

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!

1 Like

hey @CritHit share the URL of that page that you want to hide a variants then i can help you

Hey MustafA16,

Here is one of the pages:

https://crithit.ca/collections/available-scarlet-violet-singles

However I’d like to do this on several different pages, and not just the one. But if you’re able to assist me with the one, I’m sure I can figure out the others. Thank you!

Did you ever figure out how to solve that? Following because I have the same problem.