| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Running total in custom invoice.... | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Editing my order_data.tpl file to create a custom invoice I am trying to get a running total using $products[prod_num].total, ie;
quantity---description----price each-----total 5-----------cd-roms--------бё1.00---------бё5.00 2-----------books----------бё0.50----------бё1.00 I can't get the total column in the invoice, ie;price each * quantity. Anybody got any ideas? |
|||||||
#2
|
|||||||
|
|||||||
![]() at the end of each loop (before you display the total, put in :
{assign var="runningtotal" value=+$products[prod_num].total} Then display $runningtotal This might do it ![]() For ideas on how this might work look at the bestsellers template.
__________________
ex x-cart guru ![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|