Hi all,
If i have:
<?
$subtotal = "1,124.00";
$shipping_cost = "1.50";
$grand_total = number_format($subtotal+$shipping_cost, 2, ".", ",");
echo "$grand_total";
?>
the $grand_total = $2.50 (this is obviously incorrect).
If i change the $subtotal to:
$subtotal = "1124.00";
the $grand_total = $1,125.50 (this is correct).
My question is what do i need to do in order to get the $grand_total to equal $1,125.50 in the first example?
Cheers,
micmac