When a client says WooCommerce stock is not updating, the fastest first move is not a plugin test. It is reading one affected order.
What WooCommerce actually does
Core stock handling is driven by order status, and it runs once per order:
- Payment complete, or a move to Processing, On hold or Completed, calls the function that reduces stock.
- A move to Cancelled or back to Pending payment restores stock that was reduced.
- Each reduction adds an order note such as
Stock levels reduced: Product 10→9. If an item cannot be reduced, the note says so. - Core marks reduced items so the same order does not reduce twice.
- Unpaid orders can hold stock for the number of minutes set in Inventory settings. Held stock is not reduced stock.
Read the order first
- Note present: core did its job. Suspect caching, or something writing an older quantity later (ERP, marketplace sync, import, API script).
- Note missing: check stock management at store and product level, check the order never stalled in Pending payment, then suspect code.
Orders stuck in Pending payment are the most common root cause I find, and the real problem is usually a payment gateway confirmation that never reached the store.
Log when something blocks reduction
Core runs a filter before reducing stock, and any plugin or snippet can return false. This logs it at a late priority so you see the final value:
add_filter( 'woocommerce_can_reduce_order_stock', function ( $can_reduce, $order ) {
if ( ! $can_reduce ) {
error_log( 'Stock reduction blocked for order ' . $order->get_id() );
}
return $can_reduce;
}, 999, 2 );
Run it on staging with a test order, then deactivate stock-related plugins one at a time until the log line disappears.
Other causes worth ruling out
- Variable products tracking stock on the parent while the variations do not, or the reverse.
- Page cache or object cache serving an old quantity while the admin is correct.
- Stock reducing twice after a multi-location or inventory plugin is activated.
- Orders imported or created while stock management was off. Those never reduce stock afterwards, so set quantities directly after counting real stock.
Fixing the numbers
Fix the cause first, count real stock, then set quantities on the product or with the product CSV importer. Avoid fixing stock by flipping order statuses on live orders: Cancelled restores stock, moving back to Processing reduces it again, and customers get emails.
FAQ
Does WooCommerce restore stock on cancel?
Yes, if the stock had been reduced, and it adds a note.
Why is available stock lower than my shelf count?
Unpaid orders can hold stock for the configured number of minutes.
The full guide, with the eight causes in detail and a stock-flow diagram, is on my site: https://amanurrahman.com/blog-post/woocommerce-stock-not-updating-fix
Top comments (1)
The order notes tip is the part most store owners miss, and it saves a lot of guessing.
I have seen pending payment orders hold stock the same way, so that is always my second check after the notes.
Thanks for laying out the flow so clearly.