我在结帐时有一个“折扣前”价格的清单,我想在底部的新分区中计算这些价格的总金额。有什么想法吗?
我要计算的内容:
{if $item.Product.formattedListPrice}
<div id="salg" title="Rabatt"></div>
{/if}
<div id="cart2Salg">
{if $item.Product.formattedListPrice}
<span class="listPrice" title="Opprinnelige prisen">
{$item.Product.formattedListPrice.$currency}
</span>
{else}
<span class="listPrice">
</span>
{/if}
</div>
以及我如何计算它:
{foreach $item.Product.formattedListPrice.$currency as $savedtotal}
<div id="savedtotals"> {$savedtotal.formattedAmount.$currency}</div>
{/foreach}
谢谢。