There are times when you need to hide product variants on Shopify without removing them entirely. Maybe a seasonal color is out of rotation, a size is back-ordered for months, or you’re testing which options sell best. Whatever the reason, deleting the variant means losing its sales history, SEO value, and the ability to bring it back later.

Shopify doesn’t have a built-in “hide this variant” toggle, but there are several workarounds that get the job done. Below are four methods - pick the one that fits your situation - plus dedicated guidance for the most common case: hiding variants that are out of stock.

Key Takeaways
1
Set a variant’s inventory to 0 and uncheck “Continue selling when out of stock” to hide it from customers.
2
Use the draft product trick: duplicate the product, move hidden variants to the draft copy, and keep the live listing clean.
3
Add Liquid template code to your theme to conditionally hide variants based on inventory, tags, or metafields.
4
Install a third-party variant manager app if you need bulk control across many products.
5
For out-of-stock variants specifically, most themes have a built-in customizer setting that hides sold-out options entirely instead of greying them out.

Method 1: Set Inventory to Zero

This is the quickest way to hide out of stock variants on Shopify. When a variant has zero inventory and the “Continue selling when out of stock” checkbox is off, Shopify marks it as unavailable. Customers can still see the option name (greyed out), but they can’t add it to their cart.

How to Do It

Log into your Shopify admin and go to Products. Open the product that has the variant you want to hide. Scroll down to the Variants section and click the variant you want to change.

In the variant detail screen, look for the Inventory section. Make sure “Track quantity” is checked. Then set the Available quantity to 0. Finally, make sure “Continue selling when out of stock” is unchecked.

Save the product. That variant will now show as “Sold out” or be hidden entirely depending on your theme’s settings.

When to Use This

This method works well when you want to hide sold out variants temporarily - say a size or color that’s coming back in a few weeks. The downside is that some themes still display the variant name with a strikethrough or “Sold out” label rather than hiding it completely. Check your storefront after making the change.

Hide Out-of-Stock Variants Entirely (Theme Customizer Setting)

If Method 1 leaves you with greyed-out variant labels and you want them fully hidden, most modern Shopify themes (Dawn, Sense, Studio, Crave, and most paid themes from the Theme Store) include a customizer setting that does this without code:

  1. Go to Online Store → Themes and click Customize on your live theme.
  2. Open a product page in the customizer preview and click on the Product information or Variant picker block.
  3. Look for a setting called “Hide unavailable variants”, “Hide sold-out variants”, or “Show only available variants”.
  4. Toggle it on and save.

Combined with Method 1 (zero inventory), this gives you a clean hide: customers see only the variants that are actually buyable. If your theme doesn’t have this setting, you’ll need either Method 2 (draft product), Method 3 (Liquid code), or Method 4 (app).

Method 2: Move Variants to a Draft Product

If you want variants completely invisible (not even greyed out), you can move them to a duplicate product set to Draft status.

How to Do It

Go to Products in your Shopify admin. Open the product and click Duplicate. On the duplicate, delete the variants you want to keep visible - leave only the ones you want to hide. Set the duplicate’s status to Draft.

Then go back to the original product and delete the variants you just moved to the draft. The original product now only shows the variants you want customers to see, and the hidden variants sit safely in the draft product with all their data intact.

When to Use This

This works when you need variants to be completely gone from the storefront - no “Sold out” labels, no greyed-out options. It takes a bit more effort to set up, and you’ll need to remember to merge them back when you’re ready to show them again. Best for seasonal products or discontinued-but-might-return variants.

Method 3: Use Liquid Template Code

If you’re comfortable editing your Shopify theme code (or your developer is), you can add conditional logic to your product template that hides specific variants based on inventory level, a tag, or a metafield value.

How It Works

Go to Online Store → Themes → Edit Code in your Shopify admin. Find your product template file (often main-product.liquid or product-form.liquid depending on your theme). In the variant loop, add a condition that skips variants you want hidden.

For example, you could tag hidden variants with a metafield value like “hidden” and then wrap the variant option in an unless block that checks for that value. The variant stays in your Shopify catalog with full data, but customers never see it on the storefront.

For inventory-based hiding specifically, the simplest pattern is wrapping each variant option in {% if variant.available %} - variants with zero inventory and “continue selling when out of stock” off will fail the check and won’t render at all.

When to Use This

This gives you the most control. You can hide variants based on any criteria - inventory thresholds, customer tags, dates, or custom metafield flags. The trade-off is that it requires some knowledge of Shopify’s Liquid language, and theme updates may overwrite your changes if you don’t use a child theme or keep notes on your customizations.

Method 4: Use a Third-Party App

Several Shopify apps are built specifically for variant management. These let you hide, show, and schedule variant visibility without touching any code or juggling draft products.

How to Do It

Search the Shopify App Store for variant management apps. Look for features like bulk variant hiding, scheduling (auto-hide and auto-show on specific dates), and customer-group-based visibility. Install the app, connect it to your store, and use its dashboard to select which variants to hide.

When to Use This

Apps are the best option when you need to hide variants in bulk across many products, want to schedule seasonal availability changes, or need to show different variants to different customer groups (wholesale vs. retail, for example). Most apps charge a monthly fee, but the time savings and reduced error risk often make it worth the cost for stores with large catalogs.

Hide Variants by Customer Group (B2B / Wholesale)

If you sell to both retail customers and wholesale buyers, you may want certain variants visible only to one group. Shopify Plus stores can do this natively through B2B catalogs - assign a price list to a wholesale company and only the products/variants in that list are visible to logged-in B2B customers.

For non-Plus stores, the practical option is a customer-tag-based variant visibility app or custom Liquid that checks customer.tags contains 'wholesale' in the variant loop. This is a Method 3 or Method 4 problem rather than Method 1 or 2 - inventory and draft tricks won’t gate visibility by customer.

Which Method Should You Pick?

Here’s a quick comparison to help you decide:

  • Inventory to zero (Method 1) - Fastest setup. Pair with the theme customizer’s “hide unavailable variants” setting if you want them fully gone instead of greyed out.
  • Draft product trick (Method 2) - Completely hides the variant, but takes more manual effort to manage.
  • Liquid template code (Method 3) - Most flexible and precise, but requires coding knowledge. Best for inventory-threshold or metafield-based rules.
  • Third-party app (Method 4) - Best for bulk management, scheduling, and customer-group visibility. Has ongoing costs.

For most store owners hiding one or two out-of-stock variants temporarily, Method 1 plus the theme customizer setting is enough. If you have a large product catalog with frequent seasonal changes, an app (Method 4) will save you hours of manual work. For B2B/wholesale variant gating, Method 3 or 4 is the only path on non-Plus plans.