The default Order Template only shows the combined tax amount included in an order.
If you want to show a breakdown of the combined tax total into separate lines for each tax included, you can use the tax.name, order.taxable_amount and tax.rate variables.
Here is an example of how you can modify the default Order Template to show a separate line for each tax:
Default Code
Code to be modified highlighted in red:
{% if order.has_taxes_against_items %}
<tr>
<td class="heading">Tax Included</td>
<td class="qty">{{ order.currency_final_tax | simple_price_format }}</td>
</tr>
{% endif %}
Custom Code
Modified code highlighted in red:
{% if order.has_taxes_against_items %}
{% for tax in order.taxes %}
<tr>
<td class="heading">Tax: {{ tax.name }}</td>
<td class="qty">{{ order.taxable_amount | divided_by: 100.0 | times: tax.rate | simple_price_format }}</td>
</tr>
{% endfor %}
{% endif %}
Comments
0 comments
Please sign in to leave a comment.