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 %}
{% if tax.is_applied? %}
<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>
{% endif %}
{% endfor %}
{% endif %}
Result
Still have questions? In your DecoNetwork Admin, use the Universal Search box in the top bar to find more related help guides. Need more help? Click the icon next to the search box to open the help menu and submit a support ticket. Our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.