By default, Shopify keeps sold-out products visible in your collections — they just show "Sold out" on the button instead of "Add to cart". For most stores that's a missed opportunity: it clutters your bestseller collections and interrupts the browsing experience right when someone's ready to buy something else.

Shopify has a native rule engine for this, but it's buried in the collection settings and only works one collection at a time. With Claude connected via ShopMCP, you handle it store-wide in one request.

The exact prompt

Copy this into Claude

"Set every product with zero inventory to DRAFT status so they stop showing in my collections and search. Show me a preview first."
Claude finds every out-of-stock product, previews the count, and switches them to draft once you confirm — they disappear from your storefront but stay in your admin, ready to republish the moment stock returns.

Bringing them back when restocked

Draft products don't reappear automatically when inventory is added back — you still need to republish them. The same conversational pattern handles that too:

When stock is back

"Set the product 'Classic Wool Scarf' back to ACTIVE status — it just got restocked."
Prefer to keep sold-out items visible but clearly marked instead of hiding them? Ask Claude to tag them as "sold-out" rather than changing status — useful if your theme has a "notify me when back in stock" feature that depends on the product staying live.

Want Claude connected to your own store?

ShopMCP does this kind of edit — and hundreds of others — directly from a conversation.

Install ShopMCP