![]() |
Running total in custom invoice....
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? |
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 :) haven't tested it though. For ideas on how this might work look at the bestsellers template. |
All times are GMT -8. The time now is 03:14 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.