On this page
What this issue is
Every product, or nearly every product, shows "Out of stock" and the Add to cart button is gone or disabled. The shop looks normal otherwise, so the problem is easy to miss. It happens in WooCommerce and in Magento (Adobe Commerce).
Common causes: stock management was switched on with quantities of 0, a CSV import or ERP/inventory sync wrote zeros, a plugin or update changed stock settings, or in Magento the stock indexer or a source/stock assignment is wrong.
Why it costs you leads or sales
Visitors can't buy what you show as unavailable. Paid traffic keeps landing on dead product pages, so you pay for clicks that cannot convert. Because the site doesn't crash, no error alert fires, and the loss can run for days.
- Ad or search clickVisitor lands on a product
- Product pageShows Out of stock
- Add to cartButton missing
- CheckoutNever reached
- OrderNo sale
The stock status breaks at the product page, so every later step is lost.
Example: illustrative numbers for a small store. Orders drop to near zero while products show out of stock.
How to check if your site has it
Open product pages while logged out
Use a private window and look at three or four products, including best sellers. Check for the out-of-stock label and a missing Add to cart button.
Check the product list in the admin
WooCommerce: Products > All Products, look at the Stock column. Magento: Catalog > Products, check Quantity, Salable Quantity and Stock Status.
Look for a recent change
Think about the last import, sync run, plugin update or setting change before the problem began.
Check for caching
If the admin shows stock but the front end says out of stock, a cache or (in Magento) a stuck indexer is likely.
How to fix it
Check global stock settings
Go to WooCommerce > Settings > Products > Inventory. Review Manage stock and Out of stock threshold. A threshold higher than your quantities marks everything out of stock.
Fix the stock status in bulk
In Products > All Products, select products, choose Bulk actions > Edit, and set Stock status to In stock. If Manage stock is on, set real quantities instead.
Stop the source of zeros
Pause or review any inventory sync plugin, ERP connector or scheduled import. Fix its mapping so it does not write 0 or blank quantities, then re-run it.
Clear caches
Purge your caching plugin, server and CDN caches, then recheck as a logged-out visitor.
Magento: reindex
Run bin/magento indexer:status. If cataloginventory_stock or inventory is invalid or stuck, run bin/magento indexer:reindex, then bin/magento cache:flush.
Magento: check sources and stock
In Stores > Settings > Configuration > Catalog > Inventory, check Display Out of Stock Products and the threshold. Under Stores > Inventory, confirm each product has a source with quantity and the source is assigned to the stock linked to your website.
Find the writer of zeros
Check import jobs, API integrations and recently upgraded extensions. Fix them before bulk-correcting, or the problem returns.
wp wc product list --user=admin --stock_status=outofstock --fields=id,name,stock_quantity --format=tableHow to confirm it's fixed
- Product pages show In stock and an Add to cart button when logged out
- Stock quantities in the admin match your real inventory
- Add to cart works and the cart page loads
- Caches and CDN are purged
- The sync or import that caused it ran again without writing zeros
Broken
- Out of stock label on every product
- No Add to cart button
- Ad clicks go nowhere
Fixed
- Correct stock status per product
- Add to cart works
- Orders resume
How to prevent it happening again
- Test imports and syncs on a staging copy before running them live
- Keep a recent backup before updates and bulk changes
- Review stock settings after plugin or extension updates
- Set a low-stock and out-of-stock email in WooCommerce Inventory settings
- Monitor key product pages with a scheduled check
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor loads your key product pages on a schedule and runs the add-to-cart journey. The check looks for out-of-stock text that should not be there (a text-absent check). If that text appears, or the journey cannot continue, the failure is re-checked from a second region and then one alert goes out with a screenshot and a likely cause.
It checks the pages you set up, so choose a few best sellers. It does not read your inventory database. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my WooCommerce store showing everything as out of stock?
The usual causes are a stock threshold set too high, Manage stock enabled with quantities of 0, or an import or sync that wrote zeros. A plugin update can also change stock settings. Check WooCommerce > Settings > Products > Inventory and the Stock column in Products first.
How do I bulk change products to in stock in WooCommerce?
Go to Products > All Products, select the products, choose Bulk actions > Edit and set Stock status to In stock. If Manage stock is on, set real quantities instead. Back up first.
Why does the admin show stock but the shop says out of stock?
This points to a cache or, in Magento, a stuck indexer. Purge page, server and CDN caches. In Magento, run bin/magento indexer:status and reindex any invalid indexes.
Why are all my Magento products out of stock after an upgrade?
After an upgrade, indexers may be invalid or source and stock assignments may have changed. Check indexer status, reindex, and confirm each product's source quantity is assigned to the stock linked to your website.
Can an inventory sync plugin mark all products out of stock?
Yes. If the mapping is wrong or the source feed is empty, the sync can write 0 or blank quantities to every product. Pause it, fix the mapping, restore stock and re-run.
How can I know quickly when my products show out of stock?
Use a scheduled check that loads product pages and looks for out-of-stock text or a missing Add to cart. FunnelGuard does this and sends an alert with a screenshot after a second-region re-check.
Does an out-of-stock fault hurt my ad spend?
Yes. Paid clicks still land on product pages, but visitors cannot buy, so you pay for traffic that cannot convert until the stock status is fixed.
Related issues
- OPS-260Magento indexers stuck (prices/stock wrong)Fix guide
- OPS-259Cart fragments AJAX slowing siteFix guide
- OPS-262Magento extension conflict after upgradeFix guide
- OPS-255Order emails disabled in Woo settingsFix guide
- OPS-252WooCommerce update breaks checkout blocksFix guide
- OPS-253Payment plugin outdated / API version deprecatedFix guide