Short answer
Before Black Friday, check stock on every variation, find the products with more than 30 variations (WooCommerce stops marking their sold-out options), schedule sale prices on the variations rather than the parent product, and make sure your page cache clears a product page when its stock changes. Then buy your largest variable product on a phone, start to finish.
Why variable products break first
A simple product is in stock or it isn’t. A t-shirt in 6 colours and 8 sizes is 48 variations, and on Black Friday they sell out one at a time. Medium Navy goes at 10am. The product still shows “In stock”, because 47 other variations are, and the shopper who wanted Medium Navy finds out only after choosing it.
That shopper doesn’t try Large. They leave, and on Black Friday there is another store with the same deal one tab over. The traffic you paid for in ads and emails arrives, and the product page turns it away.
None of this shows up in a load test. The site is fast, the checkout works, and the sales are still lost one dead end at a time. So the checklist below is about what the shopper sees between landing on the product and pressing add to cart.
What one dead end costs on Black Friday
Put those together. Black Friday is one of the biggest online spending days of the year, and most of it happens on a phone, where picking a size and colour twice is the most annoying. And when the size a shopper wanted turns out to be gone, Baymard Institute’s research finds nearly a third of them don’t look for another one. They leave.
WooCommerce’s own survey of its stores found that for nearly half of them, the holiday season brings up to 30% of the year’s sales, and the most common way they prepare is to stock more. More stock in more sizes means more variations selling out one at a time, on the busiest product pages you have.
The best-known guides, WooCommerce’s own and Rodolfo Melogli’s Business Bloomer, are right about hosting, speed, checkout and email. WooCommerce even warns against running out of popular items mid-sale. Neither covers what the shopper sees when that happens to one size of one colour. That is what this checklist is for.
The checklist
Tick items as you go. Your ticks stay in this browser, so you can come back to the list over the next three weeks. Each item links to the part of the page that explains it.
0 of 13 done
Stock, per variation
Open Product data › Variations on your best sellers and look at each variation’s stock, not the product total. WooCommerce marks a variable product “In stock” while any one variation is, so the product page and the shop page can look healthy while the popular sizes are gone.
Backorders are a decision, not a default. A variation that allows backorders counts as purchasable everywhere: WooCommerce sells it, and swatch plugins show it as available. Baymard Institute recommends exactly this for items you can restock: take the order and show the longer delivery time, rather than send the shopper to a competitor. 68% of the sites it tested don’t. It is right when you can restock in a few days, and a support queue in December when you can’t. Set it per variation, now, for the variations you know will sell out.
On the day, don’t change the structure. Adding a size, renaming a colour or deleting a variation while traffic is high clears caches, breaks the links in emails already sent, and can leave carts holding variations that no longer exist. Change stock and prices during the sale; change attributes after it.
Products with more than 30 variations
This is the one most stores don’t know about. Up to 30 variations, WooCommerce prints every variation into the product page, and the page uses that list to remove combinations that don’t exist. Above 30, it prints nothing and looks the variation up only once every option is chosen. Until then, every size and colour looks available.
That is the case for the products with the most options, which on Black Friday are often the ones with the most traffic. Count yours: the variation count is on the Variations tab of each product.
Grey out sold-out options without a plugin
Two filters in your child theme’s functions.php or a code snippets plugin. The
first greys out variations that are out of stock:
/**
* Grey out out-of-stock variations in WooCommerce's dropdowns.
*/
add_filter( 'woocommerce_variation_is_active', function ( $active, $variation ) {
return $variation->is_in_stock() ? $active : false;
}, 10, 2 ); The second raises the 30-variation limit, so the first one has data to work with on your bigger products:
/**
* Print variation data into the page for products with up to 80 variations,
* so sold-out options can be marked before they are chosen.
* Set it just above your largest product, not higher.
*/
add_filter( 'woocommerce_ajax_variation_threshold', function () {
return 80;
} ); The cost: every view of those products now loads and prints every variation, with prices, stock and images. That is fine at 60 and slow in the hundreds, and Black Friday is the worst day to find out. Raise it just above your largest product, then load that page on a phone, where more than half of holiday spending now happens. The full walkthrough, with what each setting does above 30, is in how to grey out out-of-stock variations.
Cached pages and stock
Full-page caching is on every Black Friday checklist, and it should be. But for variable products it has a side effect: on products with up to 30 variations, each variation’s stock is printed into the page. If the cache keeps that page after Medium Navy sells out, every shopper who gets the cached copy sees Medium Navy as available. WooCommerce still refuses it at the cart, so nothing is oversold, but the shopper has already chosen a dead end.
- Check that your cache plugin or host clears a product page when its stock changes, not only when the product is edited. Most have this as a setting; some only clear on edit.
- Test it: put a variation at stock 1, open the product in a private window, buy it, then reload the product in another private window. The variation should now show as sold out.
- If your cache can’t clear on stock changes, shorten the cache lifetime for product pages over the sale weekend rather than turning caching off.
Sale prices on variations
On a variable product, the sale price lives on each variation. A sale set on the parent does nothing. Open Product data › Variations and use the bulk action Set sale prices to regular prices decreased by (it takes a percentage, so “40%” works across every variation at once), then Set scheduled sale dates so the sale starts and ends on its own, at midnight, without you awake to press a button.
Then look at the product the way a shopper will. The price range at the top shows the lowest and highest price across all variations, so one variation left out of the sale can make the range read “$19–$40” when you meant “$19–$24”. Check the shop card too, where the same range shows.
After Cyber Monday, open two or three products and confirm the sale ended on every variation. A variation added after you set the dates won’t have them.
Links that open on one variation
Your Black Friday email says “Navy hoodie, 40% off”. The link opens the hoodie on the default colour, and the shopper has to find Navy again. WooCommerce can open a product with options already chosen: add them to the address.
/product/hoodie/?attribute_pa_color=navy&attribute_pa_size=medium It works on every WooCommerce store, with no plugin, and you can add campaign tags to the same link. How to find the right names for your attributes, add tags, and build the link without typing it is in how to link to a specific variation.
Where a swatch plugin helps
Every fix above works without a plugin. A variation swatches plugin does several of them at once, and shows the options as colours, photos and buttons instead of dropdowns, so a shopper can see what is available before choosing.
KABAA Swatches is free on WordPress.org. I build it, and for Black Friday it covers:
- Sold-out options marked on products of any size, crossed out, blurred or hidden, without raising the 30-variation limit. Up to 30 it uses the data already on the page; above 30 it asks only about the swatches on screen, from a record cleared whenever stock changes.
- Pick and add to cart from the shop page. One page fewer for every shopper, on the day your server has the most of them. Choosing on a card sends no request until add to cart, so the cards work on cached pages.
- Links that follow the choice. The address updates as a shopper picks Navy and Medium, so the link you copy for an email already opens on them, with your campaign tags kept.
- Set up in one click. One button turns every dropdown into button swatches; one more undoes it. Set colours and photos on the attributes that need them later.
Three weeks is enough to install it, try it on your largest product and decide. Nothing on your pages changes until you press that button.
Frequently asked questions
How do I prepare a WooCommerce store with variable products for Black Friday?
Check stock on every variation, not just the product total. Find the products with more than 30 variations, because WooCommerce handles those differently. Schedule sale prices on the variations themselves, make sure your page cache clears a product page when its stock changes, and test buying your largest variable product on a phone.
Why does WooCommerce let shoppers pick a sold-out size?
By default WooCommerce keeps out-of-stock variations selectable and only shows “Out of stock” after every option is chosen. A filter on woocommerce_variation_is_active greys them out, or a swatch plugin can cross them out. On products with more than 30 variations the filter alone does nothing, because WooCommerce does not print the variation data into the page.
What is the WooCommerce 30-variation limit?
Above 30 variations, WooCommerce stops printing variation data into the product page and looks a variation up only when every option has been chosen. Until then, combinations that don’t exist and sold-out options stay selectable. The limit can be raised with the woocommerce_ajax_variation_threshold filter, at the cost of a heavier page.
How do I schedule a Black Friday sale on WooCommerce variations?
Open the product, go to Product data › Variations, choose “Set sale prices” and then “Set scheduled sale dates” from the bulk actions. Each variation carries its own sale price and dates; a sale price set on the parent product does nothing for a variable product.
Can a cached page show a sold-out variation as available?
Yes. On products with up to 30 variations, stock for each variation is printed into the page. If your page cache keeps that page after a size sells out, shoppers see it as available until they reach the cart. Check that your cache plugin or host clears product pages when stock changes.
Is there a free plugin that marks sold-out variations on large products?
KABAA Swatches is free on WordPress.org. It crosses out, blurs or hides sold-out options on products of any size, including above 30 variations, without raising the limit, and does it on shop cards too.