On this page
What this issue is
Many products have options such as size and colour. Each valid pairing is a variant, with its own stock level, price and SKU. The set of all pairings is the variant matrix.
This issue happens when a pairing is not really available (you don't make it, or stock is zero) but the page still treats it as buyable. The shopper picks it, sees an active Add to cart button, and the order goes through or fails later.
Common causes: inventory tracking turned off for a variant, the option 'continue selling when out of stock' enabled, a variant that was never deleted after a range change, stock that was not synced from a supplier or ERP, and a theme that shows every option value without checking which combinations exist.
Why it costs you leads or sales
Selling something you can't ship leads to cancelled orders, refunds, support tickets and bad reviews. If the combination is blocked later at checkout, the shopper has already decided to buy and then hits a wall. Many do not come back.
The reverse also hurts: if the page greys out everything after one choice, shoppers may think the whole product is sold out when other combinations are in stock.
- Product pageShopper picks Large + Red
- Add to cartButton is active for a combination you can't supply
- CheckoutError, or order accepted
- FulfilmentCancellation or refund
The unavailable combination looks buyable until it is too late.
Example: illustrative numbers only, not measured data.
How to check if your site has it
List every option on a product and test each pairing. Start with your best sellers and products you advertise.
Export your variants
Download the product list with variants and inventory from your store admin (Shopify: Products > Export; WooCommerce: Products > Export). Look for variants with zero or blank stock.
Flag risky settings
Look for 'continue selling when out of stock' (Shopify) or backorders allowed (WooCommerce) on variants with zero stock, and for inventory tracking switched off.
Click through each combination
On the live product page, select every size and colour pairing. Note whether the price, image, stock message and button make sense.
Try to add to cart
For any pairing that should be unavailable, click Add to cart and go to checkout. Record what happens.
Test on mobile
Many themes use different selectors on mobile (dropdowns versus swatches). Repeat the check on a phone.
How to fix it
There are two fixes, and you usually need both: correct the data, then make the page respect it.
Set inventory correctly
Go to Products, open the product, and under Variants set Inventory for each one. Turn on 'Track quantity'.
Stop overselling
Untick 'Continue selling when out of stock' for variants you can't backorder.
Delete impossible variants
If a combination doesn't exist, delete that variant. Shopify then shows it as unavailable in themes that support it.
Check your theme
Online Store > Themes > Customize. Use a current theme such as Dawn, which marks unavailable combinations. Older themes may need an update or a developer.
Manage stock per variation
In WooCommerce, edit the product, open Variations and tick 'Manage stock?' with a quantity for each one.
Set backorders to 'Do not allow'
Under each variation's stock settings, choose 'Do not allow' for backorders.
Remove unused variations
Delete variations that do not exist, or set Stock status to 'Out of stock' so they show as unavailable.
Check the theme and plugins
Test with a default theme such as Storefront. If the problem goes away, your theme or a variation swatches plugin is overriding availability.
Edit inventory per variant
In the dashboard go to Store Products, open the product and, under Manage Inventory, set stock for each variant or mark it Out of stock.
Remove options
Delete option values you no longer sell.
Set stock per variant
Open the product, go to Variants and set Stock for each row. A variant at 0 shows as sold out.
Delete missing rows
Remove variant rows for combinations you don't offer.
Check SKUs
In the Ecommerce panel, open the product and review each SKU. Set inventory and untick unlimited stock where relevant.
Delete unused SKUs
Remove SKU combinations you don't sell.
Validate on the server
Check the chosen combination and stock when the item is added to the cart, not only in the browser. Return a clear error if it is not available.
Disable in the interface
Build the selector from your real variant list so impossible pairings are disabled or marked as unavailable.
If you must keep selling a combination to order (made to order or backorder), say so on the page rather than hiding it. A clear 'Ships in 3 weeks' message avoids a surprise.
// Assumes `variants` is an array like [{options:['L','Red'], available:true}]
function updateButton(selected) {
const match = variants.find(v => v.options.join('|') === selected.join('|'));
const btn = document.querySelector('#add-to-cart');
if (!match || !match.available) {
btn.disabled = true;
btn.textContent = 'Unavailable';
} else {
btn.disabled = false;
btn.textContent = 'Add to cart';
}
}Before
- All size and colour combinations look selectable
- Add to cart works for a combination you don't stock
- Shopper finds out at checkout, or after paying
After
- Missing combinations are removed or greyed out
- Out-of-stock variants show 'Sold out'
- Backorder items clearly state the delay
How to confirm it's fixed
- Every combination that should be unavailable shows as sold out or is disabled
- Add to cart is blocked for those combinations
- A direct cart link with an unavailable variant ID is rejected
- Available combinations still add to cart and show the right price and image
- The behaviour is the same on mobile and desktop
- Stock in the admin matches what you physically hold
How to prevent it happening again
- Review variants whenever you launch a new colour or size or retire one
- Keep inventory tracking on for every variant
- Re-test a few top products after theme updates or new app installs
- If stock syncs from a supplier or ERP, check the sync log weekly
- Run a full variant click-through on your best sellers before a big ad campaign
How FunnelGuard handles this
FunnelGuard does not check this yet. Probing every size and colour combination of a product is a possible future check, but it does not exist today.
What FunnelGuard does today is run your real customer journeys on a schedule, such as a product page to add to cart to checkout, and check each step and the tracking hits. If a journey you set up stops working, it re-checks from a second region and sends one alert with a screenshot and a likely cause. That covers the combination your journey uses, not the rest of the matrix.
To watch for this issue now, schedule a monthly variant click-through on your top products, review your store's low-stock and out-of-stock reports, and check the export for zero-stock variants that allow overselling. The Free plan (1 site, 2 journeys, daily checks, no card) can cover your main product journey in the meantime.
Frequently asked questions
Questions people ask
Why can customers still buy a size or colour that is out of stock?
Usually because inventory tracking is off for that variant, or the store is set to keep selling when stock reaches zero (Shopify's 'Continue selling when out of stock' or WooCommerce backorders). Turn tracking on and disable overselling for that variant.
How do I disable unavailable variant combinations on Shopify?
Delete variants that don't exist, set inventory to 0 with 'Continue selling when out of stock' unticked, and use a current theme such as Dawn that marks unavailable combinations. Older themes may need an update or developer help.
Why does WooCommerce let me add an unavailable variation to the cart?
Stock management may be off at variation level, backorders may be allowed, or a swatches plugin or theme may be overriding availability. Set 'Manage stock?' and 'Do not allow' backorders on each variation, then test with a default theme.
Is a combination that doesn't exist different from an out-of-stock one?
Yes. A non-existent combination is one you never made, so it should be removed or disabled. An out-of-stock one exists but has zero stock, so it should show as sold out or clearly say when it will ship.
How do I test all product variants quickly?
Export your variants and filter for zero or blank stock, then click through every pairing on the live product page, including on mobile. Try Add to cart on any that should be unavailable and go to checkout.
Can FunnelGuard detect unavailable variants that can still be bought?
Not yet. FunnelGuard checks the journeys you set up, such as product page to checkout, but it does not probe every variant combination. That is a possible future check, so use a manual check for now.
Related issues
- CNV-137Variant selector (size/colour) doesn't change price or imageFix guide
- CNV-139Out of stock shown on advertised productFix guide
- CNV-140Product shows in stock but checkout says unavailableFix guide
- CNV-135Add to cart button missingFix guide
- CNV-136Add to cart does nothingFix guide
- CNV-150Buy Now/express button skips variant choiceFix guide