Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages

Help for owners

My WooCommerce stock numbers are wrong after orders come in

Short answer

WooCommerce only reduces stock when stock management is switched on in both the global settings and on the product. Unpaid orders hold stock for a set number of minutes and then release it, and stock is returned only if it was reduced first. Check those settings before editing any numbers by hand.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • An order came in and the stock number did not change.
  • The stock number dropped, then came back up without a sale being cancelled.
  • I sold more than I had.
  • Stock in WooCommerce does not match my warehouse or marketplace.
  • Some products behave correctly and others do not.

Why does this happen?

  1. Stock management is on in one place but not the other

    WooCommerce's order troubleshooting guide says stock may not reduce if stock management is not enabled in both the global WooCommerce settings and the individual product settings. A product set to in stock or out of stock only never has a count.

  2. Unpaid orders reserve stock, then release it

    The Hold Stock setting keeps products for unpaid orders for a number of minutes, and releases them when the time passes. It covers orders in Pending payment status, not orders On hold. A slow payment method can therefore lose its reservation while the customer is still paying.

  3. Stock only comes back if it was taken first

    WooCommerce returns stock to inventory only if stock was previously reduced for that order. A failed or cancelled order that never reduced stock will not add any back, and an order that was paid by a late gateway message can look wrong for a while.

  4. Something else is also changing the numbers

    A stock plugin, a marketplace sync, a warehouse tool or a CSV import can write stock too. When two systems write the same number, the last one wins, and a late write can undo a sale.

What can I do about it today?

  1. Pick one wrong product and open itCheck that Manage stock is ticked on the product, and that stock management is enabled under the global product settings. Write down what you find.
  2. Look at the order statusOpen one order that should have reduced stock and read the order notes. A line in the notes about stock reduced or restored tells you what WooCommerce did.
  3. Check the Hold Stock minutesUnder WooCommerce, Settings, Products, Inventory, see the Hold stock value. Blank means the feature is off. Do not change it while orders are coming in unless you know why.
  4. List every tool that touches stockMarketplaces, warehouse software, import files and plugins. Write the list down so you know which one is the source of truth.
  5. Do not bulk edit or re-import stock yetA bulk change on top of a wrong number makes the history harder to read. Export the current numbers first and keep that file.

When should I bring someone in?

  • Stock is wrong again soon after being corrected, which means something keeps writing the wrong number.
  • You sell on more than one channel and overselling is costing you orders or refunds.
  • You have many products and cannot tell which ones are wrong.

How do I handle it?

  1. Export and freeze a baselineI save current stock and a list of recent orders, so every later change can be compared with something.
  2. Find every writer of stockPlugins, imports, sync jobs and the checkout itself are listed, and I follow one sale through each of them.
  3. Check settings per productI check global and per-product stock settings and the Hold Stock value against how your payments actually settle.
  4. Make one system the source of truthIf two systems write stock, I set which one leads and make the other read from it, then test with real orders.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Why did stock come back after an order was cancelled?

WooCommerce restores stock for an order only if stock was reduced for it first. If the order had reduced stock, cancelling it correctly puts it back.

Does Hold Stock affect On hold orders?

No. WooCommerce says the setting covers orders in Pending payment status, not orders that are On hold.

Should I just correct the numbers by hand?

Only after you know why they went wrong. A manual correction fixes today's number but not the cause, so it will drift again.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Found a mistake? Tell me.

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.