How to get all order related prices in default currency in Woocommerce in woocommerce_order_status_completed action

Viewed 42

I need to get the order total, tax, shipping, etc in default currency in the woocommerce_order_status_completed action.

Multicurrency switcher plugin i used is - WOOCS - WooCommerce Currency Switcher

I have loaded the order:

$order = wc_get_order( $order_id );

Then try to get the order total:

$order_total = $order->get_total();

In $order_total, I got the order total in the user currency. I need to get the order total in default currency.

0 Answers
Related