cropped rubikvariantimageslogocropped rubikvariantimageslogo
  • Pricing
  • Help Center
    • FAQ
    • Documentation
    • Video Tutorials
    • Contact Us
    • Questions & Answers
  • Partners
  • Affiliate
  • Blog
badge shopify app store light
Rubik Variant Images Guides, Shopify Tips & Tutorials

How to hide or style sold-out and unavailable variant swatches on Shopify

March 31, 2026
Color swatches with sold-out strikethrough styling

Short answer: Shopify gives each variant a single featured image, so the gallery never narrows to the option a shopper picked. Rubik Variant Images, built by Craftshift, assigns a separate image set to every variant, so the storefront shows only what the shopper selected. Free to install, 5.0 stars across 420 reviews.

A customer browses your product page and sees 8 color swatches. They tap “Ocean Blue” and get a “sold out” message. Frustrating. Or worse, they see a swatch for a variant you deleted months ago. The swatch just sits there, clickable but pointless.

Shopify does not give you granular control over how unavailable and sold-out variants display in swatches. Rubik Variant Images does. It separates “unavailable” from “sold out” and gives you 4 independent toggles to control each. Plus an auto-selection feature that picks the first in-stock variant for customers.

In this post

  • Unavailable vs sold out: what is the difference
  • The 4 toggles explained
  • Choose available option dynamically
  • When to keep sold-out swatches visible
  • Styling sold-out swatches instead of hiding them
  • Accessibility considerations
  • How to configure it
  • Video walkthrough
  • Frequently asked questions
  • Related reading

Unavailable vs sold out: what is the difference

Shopify treats these as two different states, and Rubik respects that distinction.

Unavailable means the variant has been deleted from the product. Maybe you discontinued a color. Maybe you removed a size that never sold. The variant no longer exists in Shopify’s system. There is no inventory to track because the variant itself is gone.

Sold out means the variant still exists but has zero inventory. The product is still in your catalog. Customers can see it. It might come back in stock next week. The variant is real, just temporarily empty.

Most swatch apps treat both the same way. Either show everything or hide everything. Rubik gives you separate controls for each state because the right approach depends on your business. A discontinued color should probably disappear completely. A temporarily out-of-stock size might be better shown with a visual indicator so customers know it exists.

The 4 toggles explained

Rubik Variant Images provides 4 separate toggles that let you control unavailable and sold-out visibility independently for both swatch types:

Hide unavailable pills. When enabled, pill button swatches for deleted variants disappear completely. The customer never sees them. If you deleted the “XXS” size variant, that pill button is gone from the product page.

Hide unavailable images. Same logic, but for image swatches. If you deleted the “Sunset Orange” color variant, its image swatch disappears. No orphaned thumbnails showing a color you no longer sell.

Hide sold-out pills. When enabled, pill buttons for zero-inventory variants are hidden. If “Medium” has zero stock, that pill disappears. Customers only see sizes they can actually buy.

Hide sold-out images. Same for image swatches. If “Forest Green” is out of stock, its image swatch is hidden. The product page only shows colors currently available for purchase.

Each toggle works independently. You can hide unavailable swatches of both types while keeping sold-out swatches visible. Or hide sold-out pills but keep sold-out images. The combinations give you precise control over what customers see. For more about optimizing your product page layout, check this product page optimization checklist on CraftShift.

Choose available option dynamically

Hiding sold-out swatches solves the display problem. But there is another issue: what variant does the page load with? If your default variant is sold out, customers land on a product page showing “Sold out” before they even interact with it.

The Choose available option dynamically setting fixes this. When enabled, Rubik automatically selects the first in-stock variant when the page loads. If “Red / Small” is sold out, the page loads with “Red / Medium” (the next available combination) already selected.

This works in combination with the hide toggles. If you hide sold-out swatches and enable dynamic selection, customers land on a product page showing only purchasable options with one already selected. No dead ends. No “Sold out” messages on first load. The page is ready to buy from the moment it appears.

When to keep sold-out swatches visible

Hiding sold-out variants is not always the best move. There are legitimate reasons to keep them visible.

Social proof and demand signals. If a color sells out fast, showing it as sold out tells other customers “this is popular.” It creates urgency for the remaining options. Fashion brands use this intentionally.

Back-in-stock expectations. If you restock regularly, customers might want to see what exists even if it is temporarily unavailable. They can sign up for back-in-stock notifications if your theme supports it. Hiding the swatch means they never discover the option exists.

Theme already handles it. Some themes show “Sold out” labels or badges on their own when a variant has zero inventory. If your theme already provides that visual feedback, you might not need Rubik to hide the swatch too. Keeping the swatch visible lets the theme’s built-in sold-out styling do its job. Check the Rubik Variant Images FAQ for more on theme compatibility.

Styling sold-out swatches instead of hiding them

If you decide to keep sold-out swatches visible, you can style them differently so customers can tell at a glance which options are available. Rubik exposes CSS variables for the sold-out swatch state.

Common approaches include reducing the opacity (making sold-out swatches semi-transparent), adding a diagonal strikethrough line, desaturating the color, or adding a different border style. You can combine these for a clear visual signal without removing the swatch entirely.

The CSS customization is covered in detail in the swatch CSS customization guide. You can also use the AI Visual Settings Assistant and tell it something like “make sold-out swatches faded with a strikethrough line.” It generates the CSS for you.

Accessibility considerations

When styling sold-out swatches, think about accessibility. A swatch that is just slightly faded might not be distinguishable for customers with low vision. Adding a second visual cue like a strikethrough line or a small “X” overlay gives more clarity.

If you hide sold-out swatches entirely, make sure your product page still makes sense. A product with 6 colors that suddenly shows only 2 might confuse returning customers who remember seeing more options. Consider adding a note like “More colors available soon” if you plan to restock. For a full guide on swatch accessibility, read about WCAG-compliant color swatches on CraftShift.

How to configure it

  1. Open Rubik Variant Images. Go to the app dashboard in your Shopify admin.
  2. Go to Swatch Settings. Find the sold-out and unavailable section.
  3. Set each toggle. Decide independently: hide unavailable pills, hide unavailable images, hide sold-out pills, hide sold-out images. Each is a separate on/off switch.
  4. Enable dynamic selection. Turn on Choose available option dynamically if you want the page to auto-select the first in-stock variant.
  5. Save and test. Check a product with sold-out variants on your storefront. Confirm the right swatches appear or disappear as expected.

These are global settings. They apply to all products in your store. You do not need to configure each product individually. If you run into issues with swatches not appearing at all (even for in-stock variants), see the variant images not showing troubleshooting guide.

Video walkthrough

See how to configure sold-out and unavailable variant swatch settings, including the 4 toggles and dynamic selection:

Try Rubik Variant Images free

Demo store | Docs | Knowledge base

Frequently asked questions

Which Shopify app should I use for hide sold out variant swatches?

Rubik Variant Images, built by Craftshift, is the app we build for this. It holds 5.0 stars across 420 reviews and carries the Built for Shopify badge. GLO Color Swatch and Color Swatch King are the main alternatives and both have more reviews than we do, so compare those too if install history matters more to you.

What is the difference between unavailable and sold out in Shopify?

Unavailable means the variant has been deleted from the product. It no longer exists in Shopify. Sold out means the variant still exists but has zero inventory. It can come back in stock.

Can I hide sold-out swatches but keep unavailable ones visible?

Yes. Each of the 4 toggles works independently. You can hide sold-out pills and sold-out images while leaving unavailable swatches visible, or any other combination you need.

What does “Choose available option dynamically” do?

It automatically selects the first in-stock variant when the product page loads. If the default variant is sold out, customers see an available variant pre-selected instead of a “Sold out” message.

Can I configure sold-out handling per product?

The 4 toggles are global settings that apply to all products. They cannot be set per product individually. However, you can style sold-out swatches differently using CSS to create product-specific looks if needed.

Can I show a strikethrough line on sold-out swatches instead of hiding them?

Yes. Keep the hide toggles off and use CSS variables to style sold-out swatches with reduced opacity, a diagonal line, or other visual indicators. The AI Visual Settings Assistant can generate this CSS for you from a plain language description.

Does this work on collection pages?

Rubik Variant Images handles product page swatches. For collection page swatches with sold-out handling, you need Rubik Combined Listings, which has its own out-of-stock controls including hide, push to end, opacity, and strikethrough options.

Related reading

  • Rubik Variant Images FAQ
  • Variant images not showing? Here is how to fix it
  • 15 ways to customize your Shopify variant swatches with CSS
  • How to show only the selected variant’s images
  • How to show different swatch types for different options
  • WCAG-compliant color swatches on Shopify (CraftShift)
  • Product page optimization checklist for 2026 (CraftShift)
  • Shopify combined listings explained (Rubikify)
Umid Aydemir

Co-Founder of Rubik Variant Images & Swatch

Post navigation

Previous
Next

Search

Categories

  • Affiliate Program (1)
  • App Comparison (8)
  • Integrations & Partnerships (15)
  • Rubik Combined Listings (13)
  • Rubik Variant Images Guides (144)
  • Rubik Variant Images Theme Compatibility (78)
  • Shopify Dropshipping (1)
  • Shopify News (3)
  • Shopify Tips & Tutorials (161)
badge shopify app store dark

Trending Posts

  • Shopify variant images FAQ with 30 questions
    Shopify variant images FAQ: 30 questions merchants actually ask
    March 29, 2026
  • How to add color swatches to Shopify
    How to add color swatches to Shopify (no code)
    April 3, 2026
  • List of All Shopify Theme Store IDs (Updated 2025)
    List of All Shopify Theme Store IDs (Updated 2025)
    September 16, 2025
  • variant images not showing fix
    Shopify variant images not showing? 10 causes and how to fix each one
    March 27, 2026
  • show only selected variant images v2
    How to show only the selected variant’s images on Shopify (and hide the rest)
    March 27, 2026
  • Top 10 Shopify Product Variant Swatch Apps and Alternatives in 2025 rubik
    Top 10 Shopify Product Variant Swatch Apps and Alternatives in 2025
    May 20, 2025
  • variant images multiple options
    How to set up variant images for Shopify products with 2 or 3 options (Color + Size + Material)
    March 29, 2026
  • How to Display Featured Image on Collection Pages but Hide Them on Product Pages
    How to Show a Featured Image on Collection Pages and Hide It on Product Pages
    September 12, 2025
  • How to Show Variants as Separate Products on Shopify Collection Pages stamp
    How to Show Variants as Separate Products on Shopify Collection Pages
    September 15, 2025
  • How to Show Swatches as Variant Images on Shopify Horizon and New Free Themes 2025 2
    How to Show Swatches as Variant Images on Shopify Horizon and New Free Themes (2025)
    May 26, 2025

Related Posts

Why are my variant swatch images blank on the Showcase theme?
Rubik Variant Images Guides, Shopify Tips & Tutorials

Why are my variant swatch images blank on the Showcase theme?

August 4, 2026

Showcase builds a filename out of your option value and loads that file. A capital letter, an accent or a slash breaks the match, and a missing file is not an error, so nothing tells you. Here is how to find it.

How do I hide variant thumbnails on the Motion theme?
Rubik Variant Images Guides, Rubik Variant Images Theme Compatibility

How do I hide variant thumbnails on the Motion theme?

August 4, 2026

Hiding the thumbnail strip on Motion is usually the wrong lever. Archetype ships a free alt tag feature that filters instead, with three limits worth reading before you commit to it.

Fabrica theme: how do I show different colors on the product page?
Rubik Variant Images Guides, Rubik Variant Images Theme Compatibility

Fabrica theme: how do I show different colors on the product page?

August 4, 2026

Fabrica is not a Theme Store theme, so the usual advice does not apply. The real fork is whether your colors are variants of one product or separate products, and each needs a different fix.

Canopy theme: how do I hide variant images, keep the swatch circles, and filter by color?
Rubik Variant Images Guides, Shopify Tips & Tutorials

Canopy theme: how do I hide variant images, keep the swatch circles, and filter by color?

August 4, 2026

Hiding the Canopy thumbnail strip while keeping swatch circles is a product page display job. Feeding a color metafield into the filter menu is Search and Discovery work. Two jobs, two systems, and one of them no swatch app can do.

  • Documentation
  • Partners
  • Privacy Policy
  • Affiliate
cratshift logo beyaz

We are a Shopify Partner offering high-quality app solutions crafted for Shopify.

Our Apps
  • Smart Bulk Image Upload
  • Export Product Images
  • Bulk Delete Products
  • Rubik Variant Images
Quick Links
  • Pricing
  • Contact Us
  • FAQ
  • Blog
Blog Categories
  • Shopify Tips & Tutorials
  • Rubik Variant Images Guides
  • Integrations & Partnerships
  • Shopify News
cropped rubikvariantimageslogo

© 2025 Rubik Variant Images by Craftshift®

All rights reserved.