X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Running total in custom invoice.... (https://forum.x-cart.com/showthread.php?t=3489)

stevebag 07-07-2003 08:07 AM

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?

funkydunk 07-16-2003 12:51 PM

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.