• Resolved Ziaur Rahman

    (@ziacmt)


    Hi,

    I’m having an issue with the new WooCommerce block-based cart and checkout pages. When I add products to my cart and visit the cart or checkout page but don’t place the order right away, and then come back to place the order a few minutes or even days later, the order date shows the time and date when I first visited the cart or checkout page, not when I actually placed the order.

    This only happens with the new block-based cart and checkout pages. When I use the classic shortcode cart ([woocommerce_cart]) and checkout ([woocommerce_checkout]) pages, the order date works correctly.

    I have tested this with the latest version of WooCommerce and the default WordPress theme, without any other plugins or customizations.

    Can you help me fix this issue, or is this a known bug?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Ziaur Rahman,

    Thank you for contacting Woo support.

    With the new block-based cart and checkout pages, the behavior you’re describing is expected.
    When a customer begins the checkout process, WooCommerce creates a Draft Order at that time. This is why the order date reflects the moment the checkout process was initiated, rather than when the order was finalized.

    Please let me know if you have any further questions. ??

    Best regards.

    Thread Starter Ziaur Rahman

    (@ziacmt)

    Thanks for your reply. I want to stop WooCommerce from automatically creating draft orders while visiting the block-based cart or checkout page. I want orders to be created only when the checkout is completed.

    Is there a function or code I can use in functions.php to achieve this? Could you help me?

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Ziaur Rahman,

    Thank you for your reply.

    WooCommerce does not provide any option in the settings to control this feature.
    As per our forum guidelines, custom-coded solutions are out of our scope.

    However, I recommend that you consult a professional web developer and achieve this by adding custom code. You can find one at WooExperts or Codeable.

    I hope this helps.
    Let me know if you have any other questions. ??

    Best regards.

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