How to edit “Processing” order in Woocommerce properly

I have issue with editing “Processing” order in Woocommerce. Basically, this is what I have found online that could work:

https://businessbloomer.com/woocommerce-edit-orders/

Still, there are one major thing that is not working properly here… After “cancelling” an order, the new order does not contain old price just a difference. What to edit in this code to make sure that old price is included together with the new price (old price – subtotal – new price)?

Cancelled order output: https://prnt.sc/mfd4fr New order output: https://prnt.sc/mfd7a7

Thank you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s