Getting Total including Tax after Discounts
-
Hi Ewout,
I am back again for your help.
I am trying to show a column in my customized template to show Value of an ordered item after discounts incl of taxes in each line. (If there is no discount (echo $item[‘order_price’];) was good.
so i tried:
$linetotal1 = preg_replace(‘/[^0-9-.]+/’, ”, $item[‘line_total’]);
$linetotal = substr($linetotal1, 10);
$linetax1 = preg_replace(‘/[^0-9-.]+/’, ”, $item[‘line_tax’]);
$linetax = substr($linetax1, 10);
$mylinetotal = $linetotal + $linetax;
$gst_total=’?’.number_format($mylinetotal,2);
echo $gst_total;
I am able to get desired result but no currency symbol ‘?’Please guide me how can i achieve it?
thanks in anticipation
Manoo
- The topic ‘Getting Total including Tax after Discounts’ is closed to new replies.