Store Owner Tips

Latest News

Adding WooCommerce Variation Swatches? Fix These 3 Dead-End Moments First

Adding WooCommerce Variation Swatches? Fix These 3 Dead-End Moments First

Picture a shopper landing on your hoodie page (the prices here are examples). They see two dropdowns, both saying “Choose an option”. They pick Black, then Medium, and only then find out it’s sold out.

Large is gone too. The price still says “$45 – $60”, so they close the tab.

To stop variations confusing shoppers, fix four moments on the product page. Show options as swatches or buttons, not dropdowns. Set a default variation. Mark or hide sold-out combinations before they’re picked, and show the selected variation’s price clearly.

WooCommerce variation swatches handle the first moment. Core WooCommerce covers most of the other three for free. This guide fixes those first, then covers what to look for in a swatch plugin. For the admin side, see our guide to setting up product variations.

Jump to:


Walk Your Product Page Like A Shopper

Open a best-selling variable product in a private browser window. Try to buy it as a stranger would, and note where each choice goes wrong.

Each attribute (size, color, material) becomes its own selector, usually a dropdown. WooCommerce’s variable product documentation says the options may show as dropdowns or buttons depending on your theme. It also says the price, image and availability update only after the shopper makes every required selection.

Take a T-shirt in four sizes and five colors. That’s 20 combinations behind two dropdowns, and nothing says which ones exist.

Here’s the audit to run (a general guide, not data from a specific store):

MomentWhat the shopper sees by defaultWhat goes wrongFix
Seeing the optionsOne dropdown per attribute, “Choose an option”Colors and sizes hidden until clickedSwatches or label buttons
Starting pointNothing selectedExtra clicks; no single price or photoDefault Form Values (core)
Sold-out combinationFound out after a full selectionDead ends and an abandoned pageHide, gray out, or offer a back-in-stock route
The priceA min–max range until every option is chosenThe range reads as “how much is it really?”The selected variation’s price beside the button

🔍️ What we’ve seen: Many stores leave every attribute on “Choose an option” with no default. Add a few sold-out combinations and a shopper can hit two or three dead ends, such as Medium / Black. Only then do they find one that exists. Each dead end gives them another reason to close the tab.


Pick A Sensible Default Variation

Set a default so the page opens with a real, in-stock product already chosen. WooCommerce calls this Default Form Values, and it sits at the top of the Variations tab in the product editor.

According to WooCommerce’s documentation, defaults let shoppers add the product to the cart without making a selection first. You can only set defaults after you’ve created at least one variation.

Pick your best seller or the combination you hold the most stock of. The first thing a shopper sees is then one photo and one price.

That said, skip the default for an attribute where a wrong guess costs you. A busy shopper can miss a pre-selected Medium on a fitted shirt. That order may come back as a return. Each attribute has its own default, so you can pre-select the color and leave the size to the shopper.

Your default can shape product feeds too. AdTribes’ variable product feed guide covers an option that sends only each product’s default variation.


Show What’s Sold Out Before The Click

Tell shoppers what’s gone before they pick it. Hide sold-out combinations, gray them out, or offer a way back when stock returns.

Hide them with a core setting

The “Hide out of stock items from the catalog” setting lives under WooCommerce > Settings > Products > Inventory. WooCommerce’s documentation says it removes out-of-stock variations from the product page dropdown. Three conditions apply: per-variation stock, zero stock or Out of stock status, and backorders off.

If you manage stock on the parent product or allow backorders, every variation stays visible. On products with more than 30 variations, there’s one more limit to know about.

Gray them out or offer a way back

Core WooCommerce doesn’t gray out or cross out sold-out options by default. That display usually comes from a swatch plugin (more on those below).

Hiding suits stock that won’t return. For stock that will, give shoppers a reason to wait.

SaveTo Wishlist is a WooCommerce wishlist plugin that fits this moment. It saves the exact variation a shopper selected, not just the parent product. With SaveTo Wishlist Pro, you can send automatic back-in-stock emails to shoppers who saved the item once you restock it. Pro includes a ready-made back-in-stock email automation, so you don’t have to build one from scratch.

Pro also shows each saved variation’s own price on the wishlist page. That needs SaveTo Wishlist Lite 1.1.6 or later.

That said, those emails only reach shoppers who saved the product, not every visitor. For a “notify me” form open to anyone, see our roundup of back-in-stock alert plugins.


Products With More Than 30 Variations

Above 30 variations, WooCommerce can’t hide or filter options before the shopper has chosen them all.

At 30 variations or fewer, WooCommerce loads every variation’s details into the page. Above that, it waits until every option is picked, then looks up the match. The limit comes from a filter called woocommerce_ajax_variation_threshold, which defaults to 30.

Here’s what changes above the limit:

  • Options stay in the list: Below the limit, combinations that don’t exist drop out as shoppers choose. With the hide setting on, sold-out ones do too. Above it, nothing is removed early.
  • Sold-out news comes last: The shopper learns a combination is unavailable only after the final choice.
  • Plugin limits can match it: Variation Swatches for WooCommerce’s free version crosses out, blurs or hides sold-out swatches for up to 30 variations per product.

A developer can raise the limit with that filter, for example to 60:

add_filter( 'woocommerce_ajax_variation_threshold', function () {
    return 60;
} );

However, the tradeoff is a heavier page, since every variation’s details now load with it. Check the speed of your largest product after the change.


Replace Dropdowns With Swatches Or Buttons

Swatches help when an option is visual or there are several of them. A dropdown is fine for one long, ordered list.

  • Color, pattern or material: Use color swatches, or image swatches for prints and fabrics.
  • Sizes: Label buttons work well for a short list like S to XL.
  • Long lists: Ring sizes in half steps are easier to scan in a dropdown.

Turning on swatches in WooCommerce core

WooCommerce 10.9 added a Color / Image attribute type, according to WooCommerce’s developer blog post introducing color swatches in core. It’s an opt-in, experimental feature for block themes. To set it up:

  1. Go to WooCommerce > Settings > Advanced > Features and turn on Color swatches for attributes.
  2. Open Products > Attributes and set the attribute’s type to Color / Image.
  3. Edit each term and add a HEX color, or pick an image from your Media Library.

Each swatch shows as a circle in the Add to Cart + Options block and in Filter by Attribute. The announcement only covers attributes under Products > Attributes, so test any attribute you added on a single product. It also only covers block themes. On a classic theme, the plugins below are the way to add swatches.

Choosing a swatch plugin

When you compare plugins, check the rows below. Accessibility matters most: every swatch needs a text name that screen readers announce and keyboard users can reach.

Here’s what each plugin’s own listing or product page states (checked December 2026):

What to checkVariation Swatches for WooCommerceVariation Swatches and PhotosYITH Color, Image & Label Variation Swatches for WooCommerceSwatchly
Swatch typesColor, image and button/label free; radio buttons in PremiumColor, two-color, image, button and radio, mixable on one attributeColor, image and label free; two-color in PremiumColor, image, label and multi-color free; radio buttons in Pro
Sold-out displayCross out, blur or hide; free up to 30 variations with the core hide setting on, no limits in PremiumGray out, blur, blur with a cross, or hideHide, blur, or blur and cross out (described on the Premium page)Cross, blur or hide; automatic hiding of sold-out variations in Pro
Shop and category pagesPremium (free shows swatches in Quick View popups)Yes, on shop, category, tag and search pagesPremium, chosen per attributeFree
SetupGlobal attributes free; product-level attributes and per-product overrides in PremiumGlobal, with per-product overridesGlobal; per-product overrides in PremiumGlobal, with per-product overrides
Keyboard and screen reader supportNot statedStated: each attribute is one radio group with a visible focus ringNot statedNot stated; Pro adds radio buttons “for better accessibility”

Swatches on shop pages also change how shoppers find products in your store, because color shows before the click. The same attributes drive filtering by size and color, so keep term names consistent. If a choice is free text or a priced extra like engraving, it’s a product add-on rather than a variation.


Make The Price Stop Being A Range

A range is fine on a shop page. On the product page, it should become one price the moment a shopper chooses.

WooCommerce’s documentation says archive pages may show a range. Once every option is chosen, the product updates to show the matching variation’s price. Where that price appears depends on your theme.

On some themes, the range stays near the title while the real price shows lower down. Check it’s visible beside the add-to-cart button on a phone.

A wide range, say “$12 to $140”, can leave shoppers unsure what they’ll pay. It often means two products share one page, such as a small print and a framed canvas. Splitting them fixes it.


Check It Worked

Compare the add-to-cart rate on your variable products for a few weeks before and after the change. If that report isn’t set up yet, our guide to tracking add-to-cart in Google Analytics covers it.

Then walk the page again. If someone clicks too early, core WooCommerce shows “Please select some product options before adding this product to your cart.” A combination that doesn’t exist shows “Sorry, no products matched your selection. Please choose a different combination.” Seeing either one means a moment still needs work. Judge it on your own numbers, not an industry benchmark.


Frequently Asked Questions

Does WooCommerce have variation swatches built in?

Partly. WooCommerce 10.9 added an experimental Color / Image attribute type for block themes. Classic themes show dropdowns or theme-styled buttons, so swatches there come from a plugin.

How do I hide out-of-stock variations in WooCommerce?

Tick “Hide out of stock items from the catalog” under WooCommerce > Settings > Products > Inventory. It only hides variations whose stock is managed per variation, at zero or marked Out of stock, with backorders off.

How do I set a default variation?

Open the product’s Variations tab and choose values in Default Form Values at the top. Create at least one variation first.

Should I use swatches for sizes?

Use label buttons for short size lists. Keep a dropdown for long, ordered lists such as half ring sizes.

Can shoppers save a specific variation to a wishlist?

Yes, with SaveTo Wishlist. It saves the exact variation the shopper selected, and SaveTo Wishlist Pro shows that variation’s price on the wishlist page.


Fix The Four Moments Before Adding WooCommerce Variation Swatches

Swatches get the attention, but the cheapest fixes are two core settings: Default Form Values and the hide-out-of-stock option. Add WooCommerce variation swatches once the page already makes sense.

For the rest of the page, see our guide to WooCommerce product page optimization.

author avatar
Michael Logarta

Share article

Copyright © StoreOwnerTips.com. All Rights Reserved.