• Resolved thecreator01

    (@thecreator01)


    Hello, even if a user does not complete the order, this order appears as a draft on the orders page. Considering that there will be hundreds of thousands of visitors, deleting these draft orders will be quite time-consuming. It will also create a huge load on the database. (Screenshot attached.)

    https://ibb.co/JssMJtK

    How can I prevent this? I don’t want to create any records in the database until an order is completed.

    It might be useful to see abandoned cart amounts, but I don’t see it as necessary.

    • This topic was modified 5 months, 1 week ago by thecreator01.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support omarfpg a11n

    (@omarfpg)

    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

    Thread Starter thecreator01

    (@thecreator01)

    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!

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