Support » Plugin: WooCommerce » Bug report – issue with stock being reduced order Awaiting payment is cancelled

  • Resolved Armsportstore.com

    (@armbreakersweden)


    Hi.

    If I manually cancel an order with the order status “Awaiting payment (Inväntar betalning in Swedish Woocommerce), the stock levels are reduced and I can’t find any way to re-stock the products except manually add the stock for each product. How can the stock be reduced when I cancel an order? Shouldn’t it be the other way around and only if the stock levels already had been reduced?

    Changed my original post as I read about how this works and understand that the stock levels shouldn’t be reduced on Awaiting payment order status.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support robertght

    (@robertghetau)

    Hi there,

    I’m not able to replicate this on my end, however, I’d like to give it a shot as well.

    Could you share the exact steps taken from your site so we could give it a shot?

    Furthermore, is that order created manually or was that placed through the regular checkout process on the front-end? Can you share screenshots of how that product is configured (especially the “Inventory” tab) as well as the settings under **WooCommerce > Settings > Products > Inventory**?

    Finally, can you also share a copy of the status report as found under **WooCommerce > Status** and a screenshot of the order in place? If yes, please blur/mask the sensitive data from that order.

    Warm regards,

    • This reply was modified 2 months, 1 week ago by robertght.

    Hello,

    We have the same issue, first seen with WC v4.7.0. Tested on 2 very different websites and plugins deactivated with the same result.
    https://wordpress.org/support/topic/when-orders-are-canceled-inventory-is-reduced/

    The problem appear when a customer leave an order not fullfilled, or any other action from the customer make it so the order get registered with status awaiting payment. If i then set order to cancelled the inventory gets decreased. There was not such problems before v4.7.0, atleast not what i have registered.

    In my sites all orders normally gets into status processing, unless customer gets denied by payment gateway or similar, then it goes into awaiting payment, and the issue appear.

    There was a fix for a similar problem but with some other statuses in v4.8.0. If i remember correct it was with order status on hold.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    Sorry for late reply. But exactly as @metuza wrote. The customer makes a purchase through the checkout, in my case with PayPal. And either cancel the payment process, abort it for some other reason (close the page in the browser etc) or the payment gets denied with PayPal. The order status for these three “faults” that can occur with PayPal payments always leaves the order with status “Awaiting payment”.
    If I proceed to cancel the order or set it to failed, by changing order status and saving the order, then the stock get reduced for all products included in the order. And I can’t find a way to increase the stock again. But most important, the stock shouldn’t be reduced at all on those to order statuses, which seems strange that it does. The logic should be to increase the stock IF it had been reduced in the first place, which it doesn’t on Awaiting payment status.

    Plugin Support Ena P (a11n)

    (@drwpcom)

    Hi @armbreakersweden and @metuza. I’m sorry that you were facing this issue. The incorrect stock reduction for cancelled orders has now been resolved in WooCommerce 4.9.0. Please update the extension on your site to apply the fix.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.