Have a nice day everyone, I have something to ask your hel, to better understand here is my code:
{math equation=((($order_total-$commission)+$discount+$delivery_charge)*$rate)}
I want that to be pass to another variable,in php I want to be like this
<?php
$var=0
foreach($result as $resultA){
$var = $var+((($order_total-$commission)+$discount+$delivery_charge)*$rate);
}
?>
Hope you can help me guys!
If you’re using Smarty 3 I highly recommend ditching the {math}:
It is both better readable and faster (as the expression is actually compiled, rather than
eval()edover and over again).Smarty 2 equivalent:
If there is any chance to upgrade to Smarty 3 – do it!