php - Programmatically changing prices in woocommerce orders (my-orders)
one text
Backstory: I've manipulated a website for a client and made it work for multi-currency (not using woo payments or plugins, as the pricing structure doesn't work with these). Basically it alters the info in the filter
woocommerce_before_calculate_totals
Problem: This doesn't change anything in my-orders, so all the orders in there are showing the wrong prices. I'm wondering if there's a hook that I can use to manipulate the prices in this section?
I've started using hooks like
woocommerce_order_formatted_line_subtotal
but it's starting to get messy - I'd have to manipulate the subtotals hook, then fees hook, then taxes hook, then shipping, etc etc.
Source