How can I get all order totals without price formatting in WooCommerce?
I have tried this:
$order->get_order_item_totals()
But I get formatted prices like this:
cart_subtotal = array(
'label' => Subtotal
'value' => <span class="amount">$30.75</span><small class="tax_label">(ex. tax)</small>
)
total = array(
'label' => Total
'value' => <span class="amount">$30.75</span>
)
Instead, I would like to have something like this:
cart_subtotal = array(
'label' => Subtotal
'value' => 30.75
)
total = array(
'label' => Total
'value' => 30.75
)