I have overridden the order page in shopware and i want to create a total of all the orders that not yet been processed. i have wtitten this to just show the variables that i need. i want to add up all the totals of the invoice_amount of the orders.
{extends file="parent:frontend/account/orders.tpl"}
{block name="frontend_account_orders_welcome"}
{$smarty.block.parent}
{debug}
<ul>
{foreach $sOpenOrders as $sOpenOrder}
<li> Order number :{$sOpenOrder['ordernumber']}</li>
<li> User ID :{$sOpenOrder['userID']}</li>
<li> Invoice_amount :{$sOpenOrder['invoice_amount']}</li>
<li> ordertime : {$sOpenOrder['ordertime']}</li>
<li> paymentID : {$sOpenOrder['paymentID']}</li>
<hr>
{/foreach}
</ul>
{*show here the total of the prices for the the products above something like $Total=[invoice_amount_1+invoice_amount_2]*}
{/block}
Any ideas on how to do that? Am a bit new to shopware and smarty