• Resolved mansoorf

    (@mansoorf)


    Hi dear experts,
    the Scenario begins with my customer’s last order and updating the product price.
    for example : if a customer buy something and cannot pay the order (the order get pending status), and shop manager simultaneously change the price (after order submit),
    the customer can pay the order with old price in my-account > orders tab !!!
    so how can we cancel the pending orders after while in woocommerce to overcome this issue?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    @mansoorf,

    You can set the Hold stock (minutes) property to 15 minutes and this will cause any Pending orders to be cancelled after 15 minutes and release the stock.

    You can find that setting by going to WooCommerce → Settings → Products → Inventory. Here’s a screenshot of the setting I’m referring to: https://cld.wthms.co/z10GGR

    Thread Starter mansoorf

    (@mansoorf)

    Hi Dear Luminus
    I do this and change the digit to 15 minutes , And a problem appeared :
    A product with 300 stock (inventory) , when anyone want to buy this product a message appeared that a problem is in your cart , and try 15minutes …
    when I disable Hold stock, that error disappeared .
    what u think about this ?

    Thread Starter mansoorf

    (@mansoorf)

    Is this work for virtual products with inventory option ?

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @mansoorf,

    The Hold stock (minutes) functionality will work for all WooCommerce products which use inventory.

    Thread Starter mansoorf

    (@mansoorf)

    Hi Dear Stuart
    none of my orders canceled after 10-15-60 min after set this property.
    90% of my products uses inventory

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @mansoorf

    The Hold Stock setting will not alter existing orders, only new orders that are created after the feature is configured. Test this by switching back to a default theme like Twenty Seventeen and disable all plugins except for WooCommerce, then test again by placing a new order and not completing the payment.

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @mansoorf

    We haven’t heard from you in a while so I’ll close this thread for now. Feel free to open a new thread if you have any troubles in the future.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘delete wc-pending orders after 15 minutes …’ is closed to new replies.