I have a WooCommerce Store where I’m having an issue with Stock Management.
The stock reduction is correct when the order is under PENDING status (waiting for credit card confirmation most of the time), but the items are no re-stocked if this PENDING order is set to CANCELLED, whether it is set automatically by the inventory on-hold timeout or manually from the admin panel.
However, when order status are On Hold or Processing, if the order is Cancelled, the re-stock is working.
Any ideas what could be causing this issue? Or some function to force re-stock from Pending to Cancelled Orders?
I have WP Version 6.2.2 and WooCommerce Version 8.0.1
I've searched a lot everywhere I could, but I didn't find anything useful. Maybe my search is not accurate.