Automation
💎 Built for Sidekick
⚡ Sidekick does this for you
shopify
sidekick
automation
inventory
flow
Auto-Unpublish Products When Fully Out of Stock
Build a Flow that hides a product from sales channels the moment every variant is out of stock, preventing sales of items you can't fulfill.
📋 Prompt
Build a Shopify Flow that hides products automatically once they’re fully sold out. Trigger: Product variant out of stock. Condition: All variants of the product are now out of stock (not just this one variant) — confirm via Get product variant data across the product’s full variant list before acting, so a single sold-out size doesn’t hide a product that still has other sizes in stock. Actions: Add product tags: “[SOLD_OUT_TAG]” (e.g. “sold-out”). Unpublish product (remove from all sales channels) — or, if you’d rather keep it visible with a “sold out” label instead of hiding it entirely, tell me and I’ll swap this for “Update product status” to draft only on channels you specify, since full unpublish vs. a visible-but-unbuyable state is a real tradeoff worth deciding upfront. Before activating: Confirm whether full unpublish is really what you want vs. keeping the product page live for SEO/waitlist purposes. Confirm the tag name. After I confirm, create and turn on the Flow. Pair this with “auto-republish restocked products” so products come back automatically instead of needing a manual republish once stock returns.
How to Use
- Copy the prompt above
- Open Shopify Sidekick in your Shopify admin
- Paste the prompt and replace the bracketed placeholders with your details
- Review Sidekick's response and apply the suggestions