Prestashop 1.6:按顺序显示一行 TotalProductsTaxes-detail.tpl
Prestashop 1.6 : Display a line TotalProductsTaxes in order-detail.tpl
我想在订单中显示总税额行-Detail.tpl
我添加了那行代码,但我不知道要写什么才能得到 TotalProductsTaxes
而不是 TotalProductsWithoutTaxes
。
我尝试了几种方法,但它们都破坏了页面。
<tr class="item">
<td colspan="{if $return_allowed}2{else}1{/if}">
<strong>{l s='TVA :'}</strong>
</td>
<td colspan="{if $order->hasProductReturned()}5{else}4{/if}">
<span class="price">{displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency}</span>
</td>
</tr>
如果您有含税价格和不含税价格,您可以计算税额并将值存储在变量中:
{assign var='totalTax' value=$total_products_wt - $total_products}
{displayWtPriceWithCurrency price=$totalTax currency=$currency}</span>
我想在订单中显示总税额行-Detail.tpl
我添加了那行代码,但我不知道要写什么才能得到 TotalProductsTaxes
而不是 TotalProductsWithoutTaxes
。
我尝试了几种方法,但它们都破坏了页面。
<tr class="item">
<td colspan="{if $return_allowed}2{else}1{/if}">
<strong>{l s='TVA :'}</strong>
</td>
<td colspan="{if $order->hasProductReturned()}5{else}4{/if}">
<span class="price">{displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency}</span>
</td>
</tr>
如果您有含税价格和不含税价格,您可以计算税额并将值存储在变量中:
{assign var='totalTax' value=$total_products_wt - $total_products}
{displayWtPriceWithCurrency price=$totalTax currency=$currency}</span>