Checkout – update order instead of creating a new one
-
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.
The topic ‘Checkout – update order instead of creating a new one’ is closed to new replies.