The most reliable way to republish variants on restock is inventory-webhook automation: an app watches your stock levels and re-publishes each hidden variant to your sales channels the moment its inventory comes back — typically within a couple of minutes, with no human in the loop. Hiding sold-out variants is the easy half of the job. The expensive half is the one merchants forget: a restocked variant that stays hidden earns nothing, and nobody notices, because absence doesn't trigger complaints.
Why is forgetting to republish worse than the stockout itself?
Because a stockout costs you sales for days, but a forgotten hidden variant costs you sales indefinitely — silently. A sold-out size at least tells you something (demand exceeded supply). A restocked size that's still invisible three weeks later is inventory you paid for that cannot sell, and no dashboard flags it. If you hide variants manually — or with theme code that a shopper's browser applies — you are the republishing mechanism, and human reminders lose to busy weeks every time.
How does automatic republishing actually work?
Shopify fires a webhook every time inventory levels change; VarHide listens, re-evaluates the affected variant against your rules, and publishes it back to the channels it manages. A few details make the difference between "works" and "works safely":
- Both directions, one system. The same watcher hides on sellout and republishes on restock — visibility can never drift out of sync with inventory for long.
- Every restock counts. Supplier deliveries, customer returns, manual corrections, transfers between locations — anything that moves inventory triggers a re-check.
- Only what changed is touched. Republishing applies the minimal set of publication changes per variant, so a restock doesn't churn your whole catalogue.
- Your definition of "in stock" applies. If you hide at a threshold (say, ≤ 2 units), republishing honours the same threshold — a variant crawling back to 1 unit stays hidden until it clears your bar.
Can you control what gets republished?
Yes — the republish policy is a setting, and the safe default matters more than most merchants expect.
- "Republish anything back in stock" — the simple mode: in stock means visible, full stop.
- "Only republish what the app hid" — the respectful mode: VarHide records each variant it hides and restores only those, so a variant you unpublished on purpose (a discontinued colourway, a wholesale-only option) stays unpublished.
- Rules gate hiding, never restoring. If a variant was hidden by the app and your query-builder rules later change, it remains eligible for republishing — you can't strand inventory behind an edited rule.
How do you set it up?
- Install VarHide (free plan available).
- Select the channels — and on higher plans, B2B catalogues or Markets regions — to manage.
- Choose your republish policy (everything vs. only-app-hidden).
- Enable automatic updates (Premium, $4.99/month; the free plan runs the same logic manually, on your click).
Do you still need a back-in-stock alert app?
Yes — they solve the other half of the same moment, and they work best together. A back-in-stock alert app captures demand while the variant is gone and emails waiting customers on restock. Automatic republishing makes sure that when those customers click through, the size they were promised is actually visible and buyable. Alerts without republishing send shoppers to a page that still hides the variant; republishing without alerts recovers visibility but not the audience that left. Run both — and if you'd rather capture demand with the option still visible, that's the classic case for greying out instead, which we covered in Hide vs. Grey Out.
FAQ
How fast do variants republish after a restock?
Typically within a couple of minutes of the inventory change — the process is driven by Shopify's inventory webhooks, not a nightly job.
Will republishing undo variants I unpublished on purpose?
Not in "only republish what the app hid" mode — VarHide restores only variants it hid itself, leaving your manual unpublishes alone.
Does this work with back-in-stock alert apps?
Yes — they're complements. The alert app brings the customer back; republishing makes sure the variant is visible when they arrive.
Is automatic republishing free?
The free plan runs hide/republish manually on your click; real-time automation is Premium at $4.99/month.
Keep reading
- How to Hide Sold Out Variants in Shopify (4 Methods, 2026) — the pillar guide.
- Why Are Sold Out Variants Still Showing on My Shopify Store? — the troubleshooting checklist.
Never strand restocked inventory again.
VarHide hides on sellout and republishes on restock — automatically. 5.0★ · Built for Shopify.
Install VarHide — free plan available
By the VarHide team · Published July 2026 · Updated July 20, 2026 · 6 min read