Hi @thecreator01,
In WooCommerce, the default status for newly created orders is Pending Payment . The pending payment status is applied to orders that have been submitted, but are awaiting payment.
However, when using WooCommerce Blocks for the checkout process, orders are created when the shopper arrives to the checkout page. The pending payment status does not accurately reflect the state of these orders, which may be incomplete or unsubmitted. To accommodate for this, the checkout-draft status is used until the order is submitted.
Draft Order Cleanup
A scheduled daily cron job (woocommerce_cleanup_draft_orders) deletes all draft orders that are no longer active.
Switching your checkout page to using the checkout shortcode instead of the checkout block can stop this altogether, too.
I hope this helps!
-OP
Hello, thank you for your reply. @omarfpg
How often does the “woocommerce_cleanup_draft_orders” cron clean draft orders?
It would also be great if there was an option to block draft orders without having to use the old woocommerce cart code.
I don’t really see this as necessary from my perspective, and on a very high visitor woocommerce site adding/deleting records to the database (even through cron) really means additional load to the database.
Hey, @thecreator01!
How often does the “woocommerce_cleanup_draft_orders” cron clean draft orders?
It does it once a day.
It would also be great if there was an option to block draft orders without having to use the old woocommerce cart code.
Currently it is not possible to do this.
We appreciate your suggestions and are always looking for ways to improve our products and services, and input from users like you is invaluable.
We have a website where you can submit feature requests and upvote the ones other people submitted and you like. And there’s actually already a request for this here. You can upvote and comment on it so our team can see there are users interested in this feature.
Please let us know if there’s anything else we can do to help or if you have further questions.
Have a wonderful day!