Shopify has no single switch that hides one product variant. You can archive a whole product, but there is no “hide this variant” button on an individual size, color, or option. So every method below is a workaround, and what a shopper actually sees depends as much on your theme as on the setting you change. Many themes grey a sold-out option out or strike through it rather than remove it from the picker.

That matters because the right move changes with what you are trying to hide. A sold-out variant, an in-stock variant you simply don’t want shown, a variant meant for wholesale buyers only, and a variant image that should stay out of the gallery until selected are four different jobs. This guide is organized around those four, with working Liquid where code is the only path, a quick way to check what your own theme does, and what happens to old links, live carts, and past orders once a variant goes away.

Key Takeaways
1
Shopify cannot hide a single variant on its own. Only whole products can be set to draft or archived, so every variant-level method is a workaround.
2
To hide a sold-out variant, set its inventory to 0 and uncheck “Continue selling when out of stock”. Whether it then disappears or just greys out is decided by your theme.
3
Most modern themes have a “Hide unavailable variants” customizer setting that removes sold-out options cleanly. If yours lacks it, one line of Liquid does the same job.
4
To hide an in-stock variant, move it to a draft duplicate product or gate it with Liquid by tag or metafield. There is no native toggle for this.
5
Variant-only-for-wholesale is native on Shopify Plus through B2B catalogs. On other plans it needs a customer-tag rule in Liquid or an app.
6
Hiding a variant does not change its URL or break past orders. Order records store a snapshot, so history stays intact even after a variant is removed.

Hide a sold-out (out of stock) variant

This is the most common request, and Shopify handles the first half of it natively. Open the product in your admin, scroll to the Variants section, and click the variant you want to pull. In its Inventory block, make sure Track quantity is on, set Available to 0, and confirm Continue selling when out of stock is unchecked. Save.

Shopify now treats that variant as unavailable. What happens next on the storefront is your theme’s decision, not Shopify’s. Some themes remove the option from the picker. Many others keep it visible but greyed out, with a strikethrough or a “Sold out” label. That is why setting inventory to zero sometimes looks like nothing happened: the variant is unbuyable, but your theme still draws it.

Make it disappear instead of greying out

If you want the option gone rather than dimmed, check the theme first. Go to Online Store → Themes → Customize, open a product page in the preview, and click the Variant picker or Product information block. Look for a setting named Hide unavailable variants, Hide sold-out variants, or Show only available variants, toggle it on, and save. Shopify’s free themes, Dawn and Sense, both include it, and so do most paid Theme Store themes.

If your theme has no such setting, one line of Liquid does the same thing. In your theme’s variant-picker code (in Dawn-based themes this lives in snippets/product-variant-picker.liquid or sections/main-product.liquid), wrap each option in an availability check so unavailable variants never render:

{% for variant in product.variants %}
  {% if variant.available %}
    {% comment %} render the variant option only when it can be bought {% endcomment %}
  {% endif %}
{% endfor %}

A variant with zero inventory and “Continue selling when out of stock” off fails variant.available, so it drops out of the picker entirely. Keep a note of the edit, because a theme update can overwrite it unless you are working in a copy of the theme.

Hide an in-stock variant you simply don’t want shown

Hiding a variant that still has stock, a pre-release color, a wrong-season size, an option you are testing, is harder, because the inventory trick does not apply and Shopify has no native per-variant hide. You have two realistic routes.

Move it to a draft product

Open the product and click Duplicate. On the copy, delete every variant except the ones you want to hide, then set the copy’s status to Draft. Go back to the original and delete the variants you just parked on the draft. The live product now shows only the variants you want customers to see, while the hidden ones sit in the draft with their inventory, pricing, and images intact. When you are ready to bring one back, recreate it on the live product. This fully removes the option from the storefront, with no greyed-out label, but it is manual and best kept for a small number of seasonal or discontinued-but-returning variants.

Hide it with Liquid by tag or metafield

For a rule you can apply without juggling duplicate products, flag the variants you want hidden with a variant metafield (for example a custom.hidden boolean) and skip them in the picker loop:

{% for variant in product.variants %}
  {% unless variant.metafields.custom.hidden %}
    {% comment %} render the variant option {% endcomment %}
  {% endunless %}
{% endfor %}

The variant stays in your catalog with full data, but shoppers never see it. This is the most precise option: you can hide by metafield, by a variant option value, by date, or by inventory threshold. The trade-off is that it needs some comfort with Liquid, and like any theme edit it should be kept in a theme copy so an update does not wipe it.

Show a variant only to one customer group (B2B or wholesale)

If some variants should be visible to wholesale buyers but not retail shoppers, the clean answer depends on your plan. On Shopify Plus this is native: create a B2B catalog, attach a price list to the wholesale company, and only the products and variants in that catalog appear to logged-in B2B customers. No code.

On every other plan there is no native customer-group gate for a single variant. The practical route is a Liquid check on the shopper’s customer tags in the variant loop:

{% for variant in product.variants %}
  {% if customer.tags contains 'wholesale' or variant.title != 'Wholesale pack' %}
    {% comment %} render the variant option {% endcomment %}
  {% endif %}
{% endfor %}

Tag your wholesale accounts, and the gated variant renders only for them. If you would rather not touch code, a variant-visibility app that keys off customer tags does the same job from a dashboard.

Hide a variant image until the shopper selects it

A different task that gets lumped in with hiding variants: keeping a variant’s photos out of the gallery until someone picks that option. A product with red, blue, and green should show the red image first, then swap when the shopper chooses blue or green, rather than dumping every color into the gallery at once.

This is native in most current themes through variant-linked media. Assign each image to its variant in the admin (Products → [product] → Variants → [variant] → edit image), and the gallery shows that image only when the matching variant is selected. It works in Dawn, Sense, Crave, Impulse, and most Theme Store themes with no code. If the gallery still shows everything, open the theme customizer, click the product block, and look for Hide other variant media on selection or a similarly named toggle.

On older themes without that option, a dedicated app overrides the gallery. The two we see on live stores most often for this are Starapps Variant Image and Variant Image Wizard. Note that this is a display preference only: the variant is still visible and selectable, its photos just stay out of the gallery until chosen. That is the opposite of hiding the variant itself with the methods above.

Check what your own theme does before you rely on any of this

The single most common reason “hiding a variant” appears not to work is the theme, not the setting. Two stores can run the exact same zero-inventory change and get opposite results: one removes the option, the other greys it out. Before you trust any method, change one variant, then load the live product page in an incognito window and see what a real shopper sees.

If you are not sure which theme your store runs, or you want to see how a well-built store handles its variant picker, you can look up any Shopify store’s theme with our free Shopify theme detector. Knowing the theme tells you whether the “hide unavailable variants” setting exists for you or whether you are headed for the Liquid route. For the specific job of hiding sold-out variants without code, there are also purpose-built apps. Veil, for instance, is built only to hide sold-out variants, which saves a theme edit if that is all you need.

What hiding a variant does to links, carts, and order history

This is the part most guides skip, and it is the part that causes support tickets. Here is what actually changes.

  • Old links. Setting a variant to unavailable does not change its URL. A link like /products/handle?variant=123 still resolves, the option just shows as sold out. But if you move or delete the variant, that variant ID no longer exists on the live product, and Shopify falls back to the product’s default variant instead of throwing a 404. So a shared or bookmarked link to a removed variant lands the shopper on the product page, not an error.
  • Live carts. If a shopper already has a now-unavailable variant in their cart, Shopify blocks checkout for that line unless “Continue selling when out of stock” is on. Hiding the option in the picker does not pull it from a cart that already holds it, so always pair a hide with zero inventory if you need to stop the sale.
  • Order history. Past orders are safe. Each order stores a snapshot of what was bought, including the variant title and price, so deleting or hiding a variant never rewrites or erases old orders. Reports and customer order histories keep showing the variant exactly as it sold.

This is the real argument for hiding over deleting: you keep the variant’s sales history, its inventory record, and the ability to bring it back, none of which survive a permanent delete.

Which approach should you use?

  • A sold-out variant, now and then: zero inventory plus your theme’s “hide unavailable variants” setting. Fastest, no code.
  • A sold-out variant and no theme setting: the one-line variant.available Liquid check, or a sold-out-hiding app if you would rather not edit the theme.
  • An in-stock variant, one or two products: the draft-product trick. Fully hidden, fully reversible, but manual.
  • An in-stock variant, as a repeatable rule: Liquid by tag or metafield for precision, or a variant-visibility app for bulk and scheduling.
  • Wholesale-only variants: B2B catalogs on Shopify Plus, otherwise a customer-tag Liquid rule or an app.
  • Tidy variant images: variant-linked media plus the theme’s media toggle, which is native in most themes.

For most stores hiding the odd out-of-stock option, the inventory setting and the theme toggle together are all you need. Reach for Liquid or an app only when you need a rule that repeats across many products or a gate that inventory and drafts cannot give you.