On this page
What this issue is
A shopper sees an In stock label and an active add to cart button. They add the item, go to checkout, and get a message such as "item unavailable", "out of stock" or "quantity not available". The page promised something the checkout could not deliver.
This is a mismatch between two stock readings. The product page may show a cached copy, a theme-level label, or data from a feed. The cart and checkout check live inventory at the moment of purchase.
Why it costs you leads or sales
The shopper has already chosen the product, clicked an ad or link, and started to pay. An error at this late step feels like a broken promise. Many will not come back, and paid traffic to that product is wasted until you fix it.
- Ad or link clickVisitor lands on product
- Product pageShows In stock
- Add to cartItem added
- CheckoutSays unavailable
- PaymentNever reached
- Order confirmationNo sale, no purchase tag
The product page looks fine; the failure appears only at checkout.
Example: illustrative numbers only. Share of checkout starts that reach payment for an affected product versus a healthy one.
How to check if your site has it
Run the full path yourself, as a customer would, and compare what each step says about stock.
Open the product in a private window
This avoids your logged-in admin view and your own cache. Note the stock label and which variant is selected.
Add it to the cart and go to checkout
Try every variant (size, colour) that is advertised, not just the default.
Note the exact error text
"Out of stock", "not enough stock" and "unavailable in your region" point to different causes.
Compare with admin stock
Open the product in your platform admin and check the quantity, the track quantity setting and the stock status for that variant.
Try a different country and quantity
Shipping rules, locations and quantity limits can make an item unavailable only for some shoppers.
| Cause | Sign |
|---|---|
| Cached product page | Admin shows 0 stock but the public page still says In stock; it fixes itself after a cache purge |
| Stock only at another location | Stock exists, but not at a location that ships to the shopper |
| Variant stock at 0 | Default variant is fine, a specific size or colour fails |
| Reserved or held stock | Items sit in carts or pending orders and are held back |
| Sync or feed delay | Stock changes in an ERP, warehouse tool or feed take hours to appear |
| Hard-coded label | Theme or page builder shows In stock regardless of inventory |
How to fix it
First decide where stock truly lives (your store admin, an ERP, or a warehouse tool). Then make the product page read from that source, and stop caching the stock label for long.
Check WooCommerce stock settings
Go to WooCommerce > Settings > Products > Inventory. Review Manage stock, Hold stock (minutes) and Out of stock threshold. A long hold time keeps stock reserved by unpaid orders.
Check each variation
In the product editor, open Variations and confirm Manage stock, quantity and Stock status for every variation.
Purge caches
Clear your caching plugin and any server or CDN cache. Exclude the cart, checkout and account pages from caching, and avoid long caching of product pages if stock changes often.
Review sync plugins
If a plugin or ERP pushes stock, check its last run and error log.
Check inventory by location
Go to Products > Inventory. Make sure the variant has available stock at a location that is set to fulfil orders for the shopper's market.
Check Track quantity and Continue selling
Open the variant and review Track quantity and Continue selling when out of stock. Align them with how you want to sell.
Check markets and shipping profiles
Under Settings > Shipping and delivery, confirm the product is in a profile that ships to the shopper's country.
Review stock apps
If an inventory sync app or a theme app shows a custom stock label, check whether it reads live data or a stored copy.
Rule out tracking as the cause
GTM does not control stock. Only check that no custom HTML tag rewrites the stock label or add to cart button text on product pages.
Check the Ecommerce stock fields
In the Designer or Editor, open the product's SKU and review Inventory and Track inventory for each SKU.
Remove static stock labels
If you added an In stock label by hand, bind it to the inventory field with conditional visibility instead.
Republish
Publish the site after changes so the live pages update.
Check product inventory
In Payments > Products, open the product and its price variants and check the Track inventory settings and available quantity.
Check the funnel or store page
If the page has hard-coded text about availability, update it to match the product settings.
Check the product inventory
In the dashboard open Store Products, select the product and review Inventory for the product and each variant.
Check for custom stock text
Remove any text element or Velo code that shows In stock regardless of the inventory value.
Check variant stock
Open the product in Commerce > Inventory and confirm the quantity for every variant, including whether Unlimited is set.
Check for code injection
Review custom code or blocks that display availability text on product pages.
Use one source of truth
Have the product page and checkout call the same inventory service or database field. Avoid a separate stored flag for the label.
Re-check stock on add to cart
Validate stock server-side when adding to cart and return a clear message at that step, not first at checkout.
Shorten cache for stock
Cache product HTML briefly, or load the stock status through a small uncached API call.
async function refreshStock(sku) {
const res = await fetch('/api/stock?sku=' + encodeURIComponent(sku), { cache: 'no-store' });
const { available } = await res.json();
const label = document.querySelector('[data-stock-label]');
const button = document.querySelector('[data-add-to-cart]');
label.textContent = available > 0 ? 'In stock' : 'Out of stock';
button.disabled = available <= 0;
}
refreshStock(document.body.dataset.sku);How to confirm it's fixed
- In a private window, every advertised variant adds to the cart and reaches checkout without an availability error
- The stock label on the product page matches the admin quantity
- A product you set to 0 stock now shows out of stock on the public page after the cache time passes
- Checkout works for the main shipping countries you sell to
- A test order (using your platform's test mode) completes and the stock count drops by the right amount
How to prevent it happening again
- Keep one source of truth for inventory and document it
- Exclude cart and checkout from caching and keep product page cache short
- Check sync jobs and feeds after each change to inventory tools
- Run a test purchase on your top products after theme, plugin or app updates
- Pause ads to products that are out of stock until they are back
Before
- Page label cached for hours
- Error appears only at checkout
- Ads keep sending traffic to unavailable items
After
- Page and checkout read the same stock
- Unavailable items are flagged on the product page
- Test purchases catch mismatches early
How FunnelGuard handles this
FunnelGuard detects this only partly. It runs a test purchase path on a schedule: a robot visitor opens the product, adds it to the cart and moves through checkout, checking each step. If the cart or checkout fails to proceed on the product it tests, the failure is re-checked from a second region and you get one alert with a screenshot and a likely cause.
What it does not do: it only covers the products, variants and countries set up in its journeys, so it will not notice a mismatch on a variant or product it does not test. It does not compare your admin stock numbers with the page label, and it does not stop before payment unless test mode is set up, so it never enters real card details.
To cover the rest by hand, test your top-selling and most-advertised products and each variant in a private window after any inventory, theme or app change, and compare the page label with admin stock. You can start with the Free plan (1 site, 2 journeys, daily checks) or use the free read-only website audit.
Questions people ask
Why does my product page say in stock but checkout says unavailable?
The page and the checkout read stock from different places. The page is often cached or fed by a delayed sync, while checkout checks live inventory. Compare the admin quantity with the public page and purge the cache to confirm.
Why does only one variant say unavailable at checkout?
Stock is usually tracked per variant, so a size or colour can be at 0 while the default variant has stock. Open each variant in your admin and check its quantity, stock status and location.
Can caching cause an item to show as in stock when it is not?
Yes. If a caching plugin, server or CDN stores the product page for hours, the old In stock label stays visible after stock runs out. Keep product page cache short and never cache cart or checkout.
Why does Shopify say an item is unavailable when inventory shows stock?
Stock may be at a location that does not fulfil orders for the shopper's market, or the product may not be in a shipping profile for their country. Check the inventory location and shipping and delivery settings.
Can held or reserved stock cause this in WooCommerce?
Yes. WooCommerce holds stock for unpaid orders for the number of minutes set under Inventory settings. A long hold time can make an item look available but fail for the next shopper.
How do I test whether my checkout rejects in-stock products?
Open the product in a private window, add each variant to the cart and go to checkout in the countries you sell to. Note any availability error and compare it with the admin stock.
Can FunnelGuard detect in-stock items that fail at checkout?
Partly. It runs a scheduled test purchase path on the products set up in its journeys and alerts you if the cart or checkout fails. It does not check every variant or compare admin stock with the page label.
Related issues
- CNV-138Variant combination unavailable but still sellableFix guide
- CNV-139Out of stock shown on advertised productFix guide
- CNV-141Price on page differs from cart/checkoutFix guide
- CNV-136Add to cart does nothingFix guide
- CNV-135Add to cart button missingFix guide
- CNV-150Buy Now/express button skips variant choiceFix guide