Re: [SMARTY] Sub Total in smarty
| From: | messju mohr | Date: | Fri, 28 Nov 2003 22:43:18 +0000 |
| Subject: | Re: [SMARTY] Sub Total in smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10604@lists.php.net to get a copy of this message | ||
On Fri, Nov 28, 2003 at 11:20:06PM +0100, dr. zoidberg wrote:
> Hello,
>
> I have
>
> {section name=i loop=$price}
> <hr>
> {$price[i].name} {$price[i].price}
> <hr>
> {/section}
>
> I lope through names and prices of some hardware, and I want to display
> total cost of all components. I dont know how to do that :( any help is
> appreciated.
i think you are best of doing this in php when assigning $price and
assigning an additional $price_sum or the like.
greetings
messju
> TNX
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php