A product sells out. It stays live, a shopper lands on it from an ad or an old email, and leaves with nothing.
Or someone hides it by hand, forgets, and it stays hidden after the restock arrives.
Here's the sold-out system I'd build in Shopify Flow and Klaviyo: hide what isn't coming back, keep a waitlist for what is, and bring it back on its own when stock lands.
Table of contents
The problem
Not every sold-out product is the same. Some are restocking next week. Some are gone for good.
Most stores treat them all the same way: leave everything live, or hide everything. Both lose something.
There's a catch, too. Klaviyo's "Notify me" button sits on the out-of-stock product page. If you hide the product, nobody can join the waitlist.
Part 1: the tools
Shopify Flow, two triggers. "Variant out of stock" starts when a variant's inventory drops from 1 or more to 0 or less. "Variant back in stock" starts when it rises from 0 or less to 1 or more.
Both need Inventory tracked switched on for the product. Draft orders don't count until they're converted to orders.
Two Flow actions. "Unpublish product" takes the product off the sales channels you pick. "Publish product" puts it back. Both act only on the product that started the workflow.
Shopify also has a ready-made template, "Publish and unpublish products based on inventory level," which hides out-of-stock products and republishes them when a variant has stock again.
Two product tags. restocking for products coming back, discontinued for products that aren't. These are my own convention.
A Klaviyo back-in-stock form and flow. The form adds a "Notify me" button to out-of-stock product pages, and you can include or exclude products by Shopify tag. Signing up logs "Subscribed to Back in Stock," which triggers the flow.
Part 2: who owns what
The operations manager owns the Flow workflows, the tags and the weekly check.
The inventory or buying lead tags each product restocking or discontinued and keeps the expected date.
The email owner owns the Klaviyo form, the flow and the message.
Support answers "when is it back?" from the inventory lead's dates.
The founders decide which products are discontinued.
Part 3: the steps
1. Tag the catalog. Every product gets one of the two tags, or none if nobody has decided yet.
2. Build the out-of-stock workflow. Trigger "Variant out of stock." If the product is tagged discontinued, unpublish it from the online store.
My view: only hide it when every variant is at zero. Otherwise one sold-out size hides the whole product. Build that condition and test it on a product with two sizes.
3. Leave restocking products live. If it's tagged restocking, do nothing in Flow. The page stays up and the "Notify me" button appears.
4. Alert on untagged products. If neither tag is there, send a Slack message to the ops channel so someone decides that day.
5. Build the back-in-stock workflow. Trigger "Variant back in stock." If the product was hidden, publish it again. Add a Slack note so the team knows it's back.
6. Set up Klaviyo. Create the back-in-stock form and target it to the restocking tag. Then build the flow: the trigger, a "Back in stock" delay, and one message with Smart Sending off, as Klaviyo recommends.
7. Set the batch rules. Klaviyo lets you set a restock minimum and how many subscribers to notify per restocked unit, with a wait between batches. By default everyone is notified at once. The settings tab only shows after the first sign-up.
8. Check multi-location stores. The out-of-stock trigger page doesn't say whether it counts one location or all of them. Test it before you trust it.
Part 4: what is automatic and what a person does
Automatic: hiding discontinued products, republishing on restock, the "Notify me" button appearing and disappearing, and the back-in-stock emails.
A person: tagging products, deciding what's discontinued, dealing with untagged alerts and telling support the restock dates.
One limit: Klaviyo says its back-in-stock feature doesn't work with Shopify's "Continue selling when out of stock" setting. Products you sell on backorder need their own process.
What it solves
Shoppers stop landing on dead pages for products that aren't coming back.
Products that are coming back keep collecting demand instead of losing it. And nothing stays hidden after a restock because someone forgot.
It also turns "is it coming back?" into a decision with an owner, not a guess.
The effect on the business and how to measure it
The effect shows up in restock sales, support volume and wasted ad clicks. I don't have published figures for this, so measure it on your own store.
Baseline now: how many live products sit at zero stock, how many "when is it back?" tickets you get a week, and how long hidden products stay hidden after a restock.
Then compare after a month: the same numbers, plus back-in-stock sign-ups and orders from the back-in-stock flow in Klaviyo.
Targets, not results: no product live at zero without a tag, and every restocked product back on sale the day stock lands.
The bigger picture
This sits between my days-of-cover alert, which warns you before you run out, and my backorder system, for products you keep selling past zero.
The restock date comes from the PO milestone tracker. If you sell on several channels, the zero has to be the same everywhere, which is what stock sync handles.
The Klaviyo flow fits with my post-purchase and win-back flows. And it follows my operations setup plan: one tool per job, one owner per decision.
Build checklist
- Switch on Inventory tracked for every product the workflows cover.
- Tag every product
restockingordiscontinued, with an owner for the tags. - Build the out-of-stock workflow: hide discontinued products only when every variant is at zero.
- Send a Slack alert for sold-out products with no tag.
- Build the back-in-stock workflow to republish and post a note.
- Set up the Klaviyo form on
restockingproducts, and the flow with one message. - Set the restock minimum and batch rules once the settings tab appears.
- Test both workflows on a two-size product, and at each location if you have more than one.
- Keep backorder products out of this system.
Selling out is a good problem. The system just makes sure the next shopper sees the right thing: a waitlist, a product that's back, or nothing at all.
Source: Shopify Help Center, "Variant out of stock", "Variant back in stock", "Unpublish product", "Publish product" and "Hiding out of stock products"; Klaviyo Help Center, "How to set up a back in stock form" and "How to build a back in stock flow". The system design and expected effects are my operator view.
Frequently asked questions
Can Shopify hide products automatically when they sell out?
Yes, with Shopify Flow. The "Variant out of stock" trigger and the "Unpublish product" action can take a product off a sales channel, and Shopify has a template that hides out-of-stock products and republishes them when stock returns.
Why not hide every sold-out product?
Klaviyo's "Notify me" button sits on the out-of-stock product page. If the product is hidden, shoppers can't join the waitlist, so I'd only hide products that aren't coming back.
Does Klaviyo back-in-stock work with backorders?
No. Klaviyo says its back-in-stock feature doesn't work with Shopify's "Continue selling when out of stock" setting, so backorder products need their own process.
Can I stop Klaviyo emailing everyone at once?
Yes. Klaviyo's back-in-stock settings let you set a restock minimum, how many subscribers to notify per restocked unit and a wait between batches. By default everyone is notified at once.