Loading...

Quick Notes

How to Hide Products from Shopify Search (Sold Out or Any)

[REVIEW COPY, merges into post 1020] How to Hide Products from Shopify Search (Sold Out or Any)

To hide products from Shopify search, set the product’s seo.hidden metafield to 1 for products you never want found, or use a search re-ranking rule for sold-out products, which need to leave results when inventory hits zero and return automatically on restock. Shopify has a native answer for the first case and no toggle at all for the second. This guide covers both, plus the same problem on collection pages.

Key takeaways
  • The seo.hidden metafield (value 1) removes any product from storefront search and the sitemap while its direct URL keeps working.
  • There is no native setting to hide sold-out products from search; themes offer at best an opt-in “in stock” filter.
  • Hide sold-out items entirely when restock is unlikely; demote them to the bottom when restocks are coming.
  • Collections have the same disease; automated collection conditions or inventory-aware sorting fix it there.

How Do I Hide Any Product from Shopify Search?

Shopify supports a special metafield that removes a product from your online store’s search results: namespace seo, key hidden, value 1. Set it and the product stops appearing in storefront search and in your sitemap, while its direct URL keeps working, so you can still link it in emails or sell it through other channels. To set it, open the product in admin, scroll to the metafields section, and add seo.hidden with value 1. [VERIFY exact admin steps and current UI wording]

What seo.hidden = 1 actually does
Storefront search Sitemap Direct URL still works Other sales channels

Use this for products that should never surface in search: gift cards baked into other flows, B2B-only SKUs, legacy products kept for old order pages. Do not use it for sold-out products, because you would have to flip metafields by hand every time inventory moves, in both directions, forever.

Why Is There No Native Toggle for Sold-Out Products?

Shopify’s storefront search decides what matches a query, and it does not consult inventory when ordering results. There is no admin setting for “hide out-of-stock from search.” Themes sometimes offer an “in stock” filter, but the shopper has to apply it; default results still show unbuyable products.

That matters because a search click on a sold-out product is a dead end at the exact moment intent peaks. The shopper typed what they wanted, chose a result, and hit a wall. Some try another result; many leave. The damage is worst in the search dropdown, where only a handful of suggestions show and a single unbuyable one wastes a scarce slot. Hiding sold-out items is usually the single biggest conversion improvement a store gets from its search.

Should You Hide or Demote Sold-Out Products?

Hide entirely
Trail Runner II $89
Peak Hiker GTX $129
Summit Sandal $59
Every visible result is buyable. Best when restock is unlikely.
Demote to bottom
Trail Runner II $89
Peak Hiker GTX $129
Alpine Boot $149 Sold out
Still findable for shoppers who want it. Returns to earned position on restock.

Both are valid. Hide entirely when the product may not return soon. Demote when restocks are coming and you run back-in-stock notifications. Either way, restocks should return automatically: the moment inventory goes above zero, the product belongs back in results at whatever position its data earns. Shoppers actively hunt restocked items while demand is still hot, which is why we built a dedicated back-in-stock signal into ranking. In Dynasort this is one setting on the search recipe.

What About Sold-Out Products in Collections?

Search is half the problem; collection pages have the same disease. Two approaches. Automated collection conditions: an automated collection can require inventory stock greater than zero, which removes sold-out products from that collection entirely. Clean but blunt: the product vanishes from the page (bad if you run back-in-stock notifications from it), and manually curated collections cannot use conditions at all. Inventory-aware sorting: keep the product in the collection but sink it below everything in stock, with a small buffer so items down to a stray unit or two stop occupying top rows either. We wrote up how that buffer works in out-of-stock inventory buffer, and covered why sold-out items float upward at all in why are sold-out products showing first.

Dynasort runs the same inventory awareness on search and collections at once, so sold-out products sink everywhere from one rule.

Quick Reference: Every Method Compared

GoalMethodNative?
Hide one product from search foreverseo.hidden metafieldYes
Hide sold-out products from searchSearch re-ranking ruleNo native option
Demote in search, auto-return on restockSearch re-ranking ruleNo native option
Remove sold-out from a collectionAutomated collection inventory conditionAutomated collections only
Demote sold-out in a collectionSorting app with inventory signalNo native option

Frequently Asked Questions

Does hiding a product from search hurt SEO?

seo.hidden also removes the product from your sitemap, so Google will eventually drop it too. That is usually the point for the products you hide this way. Sold-out products handled by re-ranking are unaffected: their pages stay indexed and their URLs keep working.

Will hidden products come back automatically when restocked?

Not with the metafield: seo.hidden stays set until someone removes it. That is why inventory-driven hiding belongs in a rule that reads stock levels, which restores the product the moment inventory goes above zero.

Dynasort keeps sold-out products out of your search results and off the top of your collections. Install it from the Shopify App Store or see inventory-aware search in action.