We value your privacy

We use cookies to see how our site is used and to measure our ads. Necessary cookies are always on. Privacy policy

  • Skip to main content
  • Skip to footer
GS Plugins
  • Home
  • Plugins
    • Solid Testimonials iconSolid TestimonialsCustomer reviews & ratings
    • GS Logo Slider iconLogo SliderClient & partner logos
    • GS Filterable Portfolio iconFilterable PortfolioFilterable work galleries
    • GS Team Members iconTeam MembersTeam profiles & bios
    • GS Projects Showcase iconProjects ShowcaseProjects with details
    • GS Books Showcase iconBooks ShowcaseBook library & authors
    • GS Coaches iconCoachesCoaches & trainers
    • GS Posts Grid iconPosts GridBlog posts in grids
    • GS WooCommerce Product Slider iconWC Products SliderWooCommerce carousels
    • Variation Swatches iconVariation SwatchesColor & image swatches
    • WooCommerce Product Brands iconWC BrandsBrands for WooCommerce
    • GS Pinterest Portfolio iconPinterest PortfolioPins & boards
    • GS YouTube Gallery iconYouTube GalleryVideo galleries
    • BundlesAll Pro plugins, save up to 61%
    • All PluginsCompare all 14 plugins→
  • Bundles
  • Services
  • Blog
  • Account
Home/ Blog /GS Variation Swatches

Out of Stock Variation Swatches Are Not Hidden, Blurred, or Crossed Out

Sarwar Zaman Written bySarwar Zaman PublishedAug 25, 2026 UpdatedAug 31, 2026 Reading time7 min
Out of Stock Variation Swatches Are Not Hidden, Blurred, or Crossed Out
Variation Swatches icon

Made by GS Plugins

Try Variation Swatches

Replace variation dropdowns with color, image and button swatches.

  • Color, image & button swatches
  • Replaces variation dropdowns
  • Faster product choices
See the plugin
Summarize with
CChatGPTGGrokCClaudePPerplexityGGoogle AI
On this page13 sections
  1. Why WooCommerce May Still Show Unavailable Swatches
  2. 1. Confirm the Variation Is Actually Out of Stock
  3. 2. Check the Swatches Plugin’s Out-of-Stock Settings
  4. 3. Decide Whether Hiding or Disabling Is Better
  5. 4. Check How Combination-Based Stock Is Handled
  6. 5. Make Sure Unavailable Swatches Cannot Still Be Clicked
  7. 6. Check Your Theme for Styling Conflicts
  8. 7. Clear Cache After Changing Stock or Swatch Settings
  9. 8. Test Both Single Products and Shop Pages
  10. 9. Check JavaScript If Availability Does Not Update
  11. 10. Keep the Unavailable Style Obvious but Simple
  12. FAQs
  13. Conclusion

A customer opens a variable product, sees several color or size swatches, clicks one, and only then discovers that the option is unavailable.

That is not a great shopping experience.

Out of stock variation swatches should make availability obvious before a customer clicks them. Depending on your store design, unavailable options can be hidden, blurred, faded, disabled, or crossed out.

If WooCommerce is still showing unavailable swatches like normal active options, here is what you should check.

Why WooCommerce May Still Show Unavailable Swatches

WooCommerce understands whether a variation is in stock, but the way that information appears on the product page depends heavily on your swatches plugin and theme.

The default variation system may simply prevent customers from purchasing an unavailable combination. A swatches plugin adds the visual layer.

That means your product can have correct stock data while out of stock variation swatches still look completely normal.

For example, a shirt may have:

Colors: Black, Red, Blue
Sizes: Small, Medium, Large

If Blue + Large is unavailable, WooCommerce may know that combination cannot be purchased. But if the swatches plugin does not visually mark it, the shopper receives that information too late.

The solution starts by checking both inventory data and swatch behavior.

Free Version Pro Version Live Demo Documentation

1. Confirm the Variation Is Actually Out of Stock

Before changing any design settings, ensure WooCommerce knows the variation is unavailable.

Confirm the Variation Is Actually Out of Stock
Confirm the Variation Is Actually Out of Stock

Edit the product and go to:

Product Data → Variations

Open the affected variation.

Check:

  • Stock status
  • Manage stock
  • Stock quantity
  • Allow backorders

If “Manage stock” is enabled and quantity is zero, WooCommerce should normally treat the variation as unavailable unless backorders are allowed.

If you manually control stock status, make sure it is set to:

Out of stock

This sounds basic, but incorrect inventory data is one of the first things to rule out when out of stock variation swatches are not behaving correctly.

2. Check the Swatches Plugin’s Out-of-Stock Settings

Most capable variation swatches plugins include some type of unavailable-option behavior.

Check the Swatches Plugin's Out-of-Stock Settings
Check the Swatches Plugin’s Out-of-Stock Settings

Look through the plugin settings for options such as:

  • Hide out-of-stock swatches
  • Disable unavailable variations
  • Blur unavailable options
  • Cross out disabled swatches
  • Fade disabled swatches
  • Disable click
  • Show unavailable variation
  • Out-of-stock styling

The exact wording depends on the plugin.

You may discover that out of stock variation swatches are intentionally configured to remain visible.

For example, a plugin may offer three choices:

Hide

The unavailable swatch disappears completely.

Blur or fade

The option remains visible but clearly looks unavailable.

Cross out

The swatch remains visible with a diagonal line through it.

Choose the behavior that makes the most sense for your products.

3. Decide Whether Hiding or Disabling Is Better

Hiding unavailable options is not always the best solution.

Suppose a customer wants a shirt in Red, but Red is currently unavailable.

If you hide the swatch entirely, the customer may assume that Red was never offered.

Decide Whether Hiding or Disabling Is Better
Decide Whether Hiding or Disabling Is Better

Keeping it visible but crossed out lets the customer know that Red is still an option, even if it can’t be purchased right now.

This can be useful for products where customers may return later when stock is replenished.

For many stores, visually disabled out of stock variation swatches provide more useful information than completely hidden ones.

A faded or crossed-out swatch says:

“This option exists, but it is unavailable right now.”

That is usually clearer than simply removing it.

4. Check How Combination-Based Stock Is Handled

Variable products can become more complicated when availability depends on multiple attributes.

Check How Combination-Based Stock Is Handled
Check How Combination-Based Stock Is Handled

For example:

Black + Small: Available
Black + Medium: Available
Black + Large: Out of stock

The Black color itself is technically available because other Black variations can still be purchased.

So WooCommerce should not necessarily cross out the Black swatch immediately.

Instead, after the shopper selects Black, the Size options should update and Large should become unavailable.

Your swatches plugin needs to understand these variation combinations correctly.

If out of stock variation swatches are disabled too early or remain available after another option is selected, check whether the plugin supports dynamic variation availability.

5. Make Sure Unavailable Swatches Cannot Still Be Clicked

Visual styling alone is not enough.

A gray or crossed-out swatch should also behave like an unavailable option.

Customers should not be able to click it and accidentally create a confusing variation state.

Test the affected product.

Make Sure Unavailable Swatches Cannot Still Be Clicked
Make Sure Unavailable Swatches Cannot Still Be Clicked

Select different attributes and try clicking the unavailable swatch.

A properly disabled option should either

  • Not respond to clicks
  • Clearly show that it is unavailable
  • Prevent the unavailable combination from being selected

If the swatch looks disabled but still behaves like an active choice, the problem may involve JavaScript or plugin compatibility.

Free Version Pro Version Live Demo Documentation

6. Check Your Theme for Styling Conflicts

Your swatches plugin may already be adding the correct disabled class to unavailable options, while your theme prevents the visual styling from appearing.

This happens more often than many store owners expect.

Check Your Theme for Styling Conflicts
Check Your Theme for Styling Conflicts

A theme may override styles related to:

  • Opacity
  • Borders
  • Pseudo-elements
  • Background colors
  • Disabled states
  • Text decoration

As a result, out of stock variation swatches behave correctly but still look active.

Temporarily test the product using a standard WooCommerce-compatible theme.

If the unavailable styling suddenly appears, your theme is likely overriding the swatches plugin’s CSS.

You can then check for a compatibility setting before adding custom CSS.

7. Clear Cache After Changing Stock or Swatch Settings

Stock changes can be hidden behind cached product pages.

You may mark a variation as out of stock and configure crossed-out swatches correctly but still see the previous version.

Clear Cache After Changing Stock or Swatch Settings
Clear Cache After Changing Stock or Swatch Settings

Clear:

  • WordPress cache
  • Server cache
  • CDN cache
  • Browser cache
  • WooCommerce transients

Then test the product in a private browser window.

This is especially important if your store uses aggressive page caching or JavaScript optimization.

Old frontend data can make out of stock variation swatches appear available even after the underlying configuration has already been corrected.

8. Test Both Single Products and Shop Pages

Some swatch plugins use different settings for different locations.

Out-of-stock behavior may work correctly on a single product page but not on the following:

  • Shop pages
  • Category pages
  • Search results
  • Quick view
  • Related products

Or the opposite may happen.

Test Both Single Products and Shop Pages
Test Both Single Products and Shop Pages

If you display variation swatches outside individual product pages, test those locations separately.

Make sure out of stock variation swatches communicate the same availability state wherever customers can interact with them.

Consistency matters here.

An object is consistently available or unavailable, both on the shop page and unavailable after opening the product.

9. Check JavaScript If Availability Does Not Update

Variation availability often changes dynamically.

When a shopper selects Color, WooCommerce recalculates which Size options are valid for that selection.

Swatch plugins usually depend on WooCommerce variation JavaScript to reflect those changes visually.

Check JavaScript If Availability Does Not Update
Check JavaScript If Availability Does Not Update

Open the product page and check:

F12 → Console

Look for JavaScript errors involving:

  • WooCommerce variations
  • jQuery
  • Switches scripts
  • Theme scripts
  • Optimization plugins

If a script fails, out of stock variation swatches may never update after customers change an attribute.

Also test temporarily without JavaScript optimization features such as delay, deferral, or aggressive script combination.

10. Keep the Unavailable Style Obvious but Simple

Do not make unavailable swatches difficult to recognize.

A shopper should understand the state almost instantly.

Keep the Unavailable Style Obvious but Simple
Keep the Unavailable Style Obvious but Simple

Good approaches include:

  • Reduced opacity
  • A clean diagonal cross
  • A subtle blur
  • Muted colors
  • Disabled cursor behavior

You do not need several effects at once.

For example, a faded swatch with one diagonal line is usually enough.

The purpose of styling out of stock variation swatches is not decoration. It is communication.

Customers should immediately understand which options they can choose and which ones they cannot.

Easy Way To Replace WooCommerce Dropdowns with Variation Swatches Read next Easy Way To Replace WooCommerce Dropdowns with Variation Swatches Sarwar Zaman Sarwar Zaman Aug 1, 2026 Read article

FAQs

Why are my out of stock variation swatches still visible?

They may remain visible because your swatches plugin is configured to display unavailable options instead of hiding them. Check its out-of-stock or disabled variation settings.

Should I hide out of stock variation swatches completely?

Not necessarily. Keeping out of stock variation swatches visible but faded or crossed out can help customers understand that an option exists but is temporarily unavailable.

Why does an unavailable swatch become disabled only after I select another option?

Availability can depend on variation combinations. A color may be available in several sizes but unavailable in one specific size, so WooCommerce needs another selection before determining the valid combination.

Can my theme stop unavailable swatches from looking disabled?

Yes. Theme CSS can override the styles used for out of stock variation swatches. Testing with a standard WooCommerce-compatible theme can help identify this conflict.

Why are out of stock variation swatches still clickable?

The plugin’s JavaScript may not be disabling unavailable options correctly, or another script may be interfering with WooCommerce variation handling. Check the browser console and test for plugin conflicts.

Conclusion

If out of stock variation swatches look exactly like available options, first confirm the variation inventory is correct. Then review your swatches plugin’s unavailable-option settings and decide whether hiding, fading, or crossing out works best for your store.

Most importantly, make the unavailable state obvious and consistent. Customers should know what they can purchase before they waste time clicking on an unavailable option.

Free Version Pro Version Live Demo Documentation
GS Variation Swatches
Found this useful? Share it
Variation Swatches icon

Made by GS Plugins

Try Variation Swatches

Replace variation dropdowns with color, image and button swatches.

  • Color, image & button swatches
  • Replaces variation dropdowns
  • Faster product choices
See the plugin
Sarwar Zaman
About the author

Sarwar Zaman

Hi, I'm Sarwar Zaman, founder of GS Plugins, creating tools that make WordPress effortless and powerful. When I’m not diving into code, I’m a dad who loves spending quality time with my family. Besides traveling and reading novels, writing blogs is the way I connect with people, sharing tips and stories to make the web a better place.

More articles by Sarwar Zaman

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

On this page

  1. Why WooCommerce May Still Show Unavailable Swatches
  2. 1. Confirm the Variation Is Actually Out of Stock
  3. 2. Check the Swatches Plugin’s Out-of-Stock Settings
  4. 3. Decide Whether Hiding or Disabling Is Better
  5. 4. Check How Combination-Based Stock Is Handled
  6. 5. Make Sure Unavailable Swatches Cannot Still Be Clicked
  7. 6. Check Your Theme for Styling Conflicts
  8. 7. Clear Cache After Changing Stock or Swatch Settings
  9. 8. Test Both Single Products and Shop Pages
  10. 9. Check JavaScript If Availability Does Not Update
  11. 10. Keep the Unavailable Style Obvious but Simple
  12. FAQs
  13. Conclusion
Share
GS Logo Slider iconSolid Testimonials iconGS Team Members iconGS Filterable Portfolio icon All plugins bundle Get all 12 Pro plugins and save up to 61% See bundles WordPress services Need help with your site? Talk to our team. Book a free call

Keep reading

Related articles

View all
Easy Way to Fix WooCommerce Swatches Not Showing on Shop Page
GS Variation Swatches 7 min read

Easy Way to Fix WooCommerce Swatches Not Showing on Shop Page

Your swatches look perfect on individual product pages, but the moment you visit the Shop or Category page, they disappear. This is…

Sarwar ZamanSarwar Zaman Aug 31, 2026
Why All WooCommerce Swatches Show Out of Stock When Only One Variation Is Unavailable
GS Variation Swatches 7 min read

Why All WooCommerce Swatches Show Out of Stock When Only One Variation Is Unavailable

You mark one WooCommerce variation as unavailable. Then you open the product page and suddenly every color or size swatch appears disabled.…

Sarwar ZamanSarwar Zaman Aug 28, 2026
Avoid Costly Duplicate Colors and Sizes by Organizing Product Attribute Terms
GS Variation Swatches 7 min read

Avoid Costly Duplicate Colors and Sizes by Organizing Product Attribute Terms

A WooCommerce catalog can become messy faster than expected. One product uses Navy, another uses Navy Blue, and a third uses Dark…

Sarwar ZamanSarwar Zaman Aug 22, 2026

Made by the GS Plugins team

Put these ideas to work on your site

Easy, well-supported plugins for logos, teams, portfolios, testimonials and WooCommerce. Start free, upgrade when you need more.

Explore plugins See bundles

Footer

GS Plugins

Build better WordPress sites, faster.Easy, well-supported plugins that save you hours of customization and development.

Resources

  • Documentation
  • Refund Policy
  • Privacy Policy
  • Terms of Use

Quick Links

  • About
  • Contact
  • Blog
  • Manage License
  • Affiliate Program
  • Sitemap

Free Tools

  • HTML Beautifier
  • HTML Minifier
  • CSS Minifier
  • CSS Beautifier
  • Case Converter

More Tools

  • Image Optimizer
  • JSON Minify
  • JSON Viewer
  • CSV to JSON
  • All Tools

Copyright © 2026 | GS Plugins, All Rights Reserved.

Cookie settings

4.6/5 · 540+ ratings on WP.org Paddle