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.
I made these settings, but the status of orders after the specified time can not be fed
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.