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:

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: New order output:

Thank you.


Leave a Reply

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

You are commenting using your 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