Try this code: $order = new WC_Order($order_id); $order->update_status(' pending', 'order_note'); // order note is optional, if you want to add a ...
Go to: WooCommerce > Orders · Locate the Order for which you would like to change the status. · Click the Change Status button in the Actions column. · Select the ...
a little late, but still hard to find... Possible values. Based on https://www. bozzmedia.com/posts/get-know-woocommerce-status-definitions/.
Click the order number and customer name to see the Single Order page, where you can also Edit order details, Update Status, and Add Notes. More details on ...
It was extremely helpful. The code works perfectly as it is. Then I wanted to change it. I wanted to set “Awaiting Confirmation” as default status. But ...
Once your statuses have been created, you can create emails that will be triggered based on any status change(s). Go to WooCommerce > Settings > Order ...
Requests with a message-body use plain JSON to set or update resource attributes. Successful requests will return a 200 OK HTTP status. Some general ...
Thank you all, I did found the answer HERE. I adapt a bit the code to my needs and added a button. html:
Use this extension to automatically change the order status to "completed" after successful payment.
So won't be any conflict if I allow vendor to change the order status.