Passing the variable in OpenCart

Hi,

I need to pass the variable of the total cost into confirm.tpl. The trick is that I need to pass it without currency character as my application doesn’t understand it. It must be numerical character only.

$amount = “10.00”; <- I need to replace the number with variable of the total cost
$amount = $total[‘text’]; -> doesn’t understand because it includes the dollar($) character
$amount = $total[‘value’]; -> doesn’t understand because it’s a value of all totals and I only need the
total of the total.

hopefully it make sense.

Thanks,

Sponsor our Newsletter | Privacy Policy | Terms of Service