• Resolved alirezam500

    (@alirezam500)


    Hello
    I use the YITH WooCommerce Booking plugin site
    Orders that are unsuccessful and unpaid cannot be booked by another user.
    How can I automatically change all failed and unpaid orders to canceled status?
    For example, after 20 minutes, if the payment is not made, it will be changed to the canceled status
    To do this, introduce a plugin or code

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    There is a setting for this – you can set 20 minutes for Hold stock (minutes) under WooCommerce > Settings > Products > inventory: https://docs.woocommerce.com/document/configuring-woocommerce-settings/#products-inventory-options

    I hope it helps.

    Thread Starter alirezam500

    (@alirezam500)

    I made these settings, but the status of orders after the specified time can not be fed

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @alirezam500,

    I tested the On Hold stock functionality of WooCommerce today and this is working as expected on both of my test installations which use the latest version of WordPress and WooCommerce. The order will not be physically deleted from the store but it will be set to cancelled and the stock returned for other customers to purchase.

    If the default functionality of Hold Stock for x amount of minutes is not working for you it could be related to the YITH WooCommerce Booking plugin itself. I’d suggest reaching out to YITH to see if their plugin is somehow preventing stock for bookings from being returned to the store.

    Hi @alirezam500

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Delete unsuccessful orders’ is closed to new replies.