• Resolved omersha

    (@omersha)


    This is what I am trying to do:

    On a WooCommerce website, when someone clicks on the checkout button at the checkout page, he might get an error. I want to create an order when a specific error message is served. The difficulty starts when I want it to work in a way where if the user fixes what he needs to and checks out, there won’t be another order but the order I created programmatically will get updated.

    How can I tell WooCommerce not to create a new order in this case but to update the one I have already created? I tried looking for a solution online but couldn’t find anything helpful.

    Let me know if you have any questions or need more information.
    Thanks.

Viewing 1 replies (of 1 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @omersha,

    Thanks for getting in touch.

    It sounds like a rather complex development topic, but you can start getting the first suggestions and clues on how to get started from this Stack Overflow thread.

    I’m going to leave the thread open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers.

Viewing 1 replies (of 1 total)

The topic ‘Checkout – update order instead of creating a new one’ is closed to new replies.