Xeon Apps VarHide Blog

How to Hide Out-of-Stock Variants Without Deleting Them

You can hide out-of-stock variants in Shopify without deleting them by unpublishing them from your sales channels instead — the variant stays in your admin with its SKU, pricing, and history intact, while shoppers stop seeing it. Deletion is the quickest way to make a sold-out variant disappear, and the most expensive: you just don't get the bill until restock day.

This guide covers what deletion actually costs, the non-destructive options Shopify gives you natively, and the unpublish-at-channel-level approach that preserves every byte of data. (For the full landscape of hiding methods, including copy-paste theme code, start with our pillar guide to all four methods.)

What do you lose when you delete a variant?

More than an option in a dropdown — a variant is a record that other systems depend on, and deleting it severs every one of those threads. Delete a sold-out variant and you lose:

  • The SKU and barcode. Recreate the variant later with a typo in either, and your fulfilment, POS, or 3PL integrations quietly break.
  • Pricing. Price, compare-at price, and cost-per-item all have to be re-entered from memory or a spreadsheet.
  • Analytics identity. Reports that track performance by variant lose the thread. The recreated variant is, as far as your data is concerned, a brand-new product with no history.
  • Integration references. Product feeds, marketplaces, ERP syncs, and review apps that point at the old variant ID now point at nothing.
  • Your time, twice. Once to delete, once to rebuild — multiplied by every restock cycle.
Rule of thumb: deletion is for variants you'll never sell again. For anything that might come back — a size, a colourway, a seasonal option — hide it instead.

What non-destructive options does Shopify give you natively?

Two, and both fall short at the variant level: draft status hides the entire product, and theme-code edits hide variants from one storefront surface only. Neither deletes anything, which is progress — but neither is really a variant-level visibility control either.

Setting the product to draft

Draft status hides the entire product. If one size out of six sells out, drafting the product takes five perfectly sellable variants down with it. It's the wrong lever for variant-level problems.

Theme-level display logic

You (or a developer) can edit the theme so unavailable variants aren't rendered in the picker. This is non-destructive — the variant still exists — but it needs code, it breaks when you update or switch themes, and it only affects that one storefront surface. Search, collection filters, and other sales channels still show the variant. Copy-paste code and the full trade-offs are in method 2 of our pillar guide.

How do you hide a variant without deleting it?

Unpublish it from your sales channels instead of removing it from your catalogue. Shopify's publishing system controls which catalog entries each channel can see, and VarHide uses it at the variant level: when a variant sells out, the app unpublishes it from the channels you choose. The variant itself is untouched.

That distinction does a lot of work:

  • Everything stays in your admin. SKU, barcode, prices, inventory settings, order history — all intact. Shoppers can't see the variant; you still can.
  • It disappears everywhere that matters. The one-toggle app embed handles the product page picker, and the channel-level unpublish removes it from storefront search and collection filters — no code changes, no flicker.
  • Restocks reverse it automatically. When inventory comes back, VarHide republishes the variant to the same channels, typically within a couple of minutes of the inventory change. Nothing to recreate, nothing to remember.
  • It's fully reversible. Before touching a variant, VarHide records which publications it was originally on. A one-click restore puts every variant back exactly where it started — a safety net deletion can never offer.

How do you set it up?

Five steps, about five minutes, no code.

  1. Install VarHide (free plan available).
  2. Pick the sales channels to manage — and on higher plans, B2B catalogues and Shopify Markets regions, each controlled independently.
  3. Define "sold out": the default available-for-sale check, only online-fulfilling locations, specific locations, or a threshold like "2 units or fewer".
  4. Optionally scope it with the query builder — by product tag, vendor, type, status, variant SKU, price, even metafields — so the app only manages the variants you want managed.
  5. Enable automatic updates (or stay on the free plan and trigger updates manually).

What guardrails prevent mistakes?

Three defaults protect you: products never 404, backorders stay sellable, and your own manual unpublishes are respected.

  • No 404s, ever. If every variant of a product sells out, VarHide keeps the product visible rather than leaving it with zero published variants — so the product URL stays live for SEO, bookmarks, and ad links. Single-variant products included.
  • Backorders are respected. Variants set to "continue selling when out of stock" are sellable on purpose, so they're left visible by default. Untracked-inventory variants are treated as in stock and never hidden.
  • Your manual decisions survive. An optional "only republish what the app hid" mode means a variant you unpublished yourself stays unpublished — the app won't fight you.

FAQ

Does unpublishing a variant affect my reports or order history?

No. The variant remains in your admin with its full history; only its visibility on the selected sales channels changes. Past orders are untouched.

What's the difference between unpublishing a variant and drafting the product?

Draft status hides the whole product from every channel. Unpublishing a variant removes just that option, from just the channels you choose, while the rest of the product keeps selling.

If I uninstall or change my mind, can I get everything back?

Yes. VarHide records each variant's original publication state before making any change, and the restore action re-publishes every variant to that recorded state.

Can I hide variants on my online store but keep them in B2B?

Yes — publications are managed independently, so you can hide a variant from your retail storefront while a B2B company catalogue keeps seeing it (B2B catalogue support is on the Business plan and above).

Keep reading

Hide variants. Keep the data.

VarHide unpublishes sold-out variants and brings them back on restock — SKUs, prices, and history intact. 5.0★ · Built for Shopify.

Install VarHide — free plan available