Woocommerce get cart total price in a number format [closed]
Is it possible to get the cart total price without any markup. So without the € symbol? Right now I’m getting the amount with:
$totalamount = $woocommerce->cart->get_cart_total();
this will give €16.50
I tried this also:
$totalamount = number_format($woocommerce->cart->get_cart_total(), 2, '.', '');
But this always gives 0.00
Is there a woocommerce get function that will give a number format of the total cart price? Thanks!