Articles on: Online Store

Update invoice tax display to latest version

In this article:

Briefing about new version of tax display
Guide to amend your order invoice email template

1. Briefing of new version of tax display



 ⚠️ Important note :

This guide is applicable to merchants who charge GST to their customers and who have manually amended their own order invoice email template.

If you did not amend your order invoice email template before, you may ignore this guide, we will automatically update your order invoice email template.


Your invoice will be displayed with price before GST (as sub-total), total price after GST charges and a summary of tax at the bottom of invoice.



2. Guide to amend your order invoice email template



Step 1 : Log in your EasyStore > Settings > Templates > Order Invoice Email  > Edit



Step 2 : Select code view



Look for <p style="text-align:right;">Product(s) with * is taxable product</p>  around line 100 - 110 and remove it



Step 4 : Look for {% if product.taxable %} *{% endif %} around line 110 - 120 and replace with {% if product.taxable %} SR{% else %} ZR{% endif %}





Step 5 : Look for order.total_shipping, replace with order.total_shipping_include_tax for both results





Step 6 : Look for below code around line 140 - 160 and delete it

{% if order.shipping_tax != 0 %}
<table style="border-collapse:collapse;width:100%;">
    <tbody>
        <tr>
            <td style="padding:4px 0;text-align:right;">Shipping Tax</td>
            <td style="padding:4px 0;text-align:right;width:120px;">{{ order.shipping_tax }}</td>
        </tr>
    </tbody>
</table>
{% endif %}




Step 7 :
7.1 Look for below code around line 290 - 310

{% if order.total_tax != 0 %}
		<br>
		<table style="border-collapse:collapse;width:100%;">
			<tbody>
				<tr>
					<td style="padding:4px 0;text-align:right;">Taxes {% if order.taxes_included == true %} ( Included in taxable product ){% endif %}</td>
					<td style="padding:4px 0;text-align:right;width:120px;">{{ order.total_tax }}</td>
				</tr>
			</tbody>
		</table>{% endif %}




7.2 Replace with below code

<table style="border-collapse:collapse;width:100%;border:1px solid grey">

    <tr>

        <td style="padding:5px;">Code</td>
        <td style="padding:5px;text-align:right;">Amount</td>
        <td style="padding:5px;text-align:right;">Tax</td>
    </tr>
    <tr>
        <td style="padding:5px;">SR ({{ order.tax_rate }}%)
{% if order.taxes_included == true %}<i style="font-size:13px"> Included in taxable product</i>{% endif %}</td>
        <td style="padding:5px;text-align:right;">{{ order.total_taxable_item_price }}</td>
        <td style="padding:5px;text-align:right;">{{ order.total_taxable_item_tax }}</td>
    </tr>
    <tr>
        <td style="padding:5px;">ZR (0%)</td>
        <td style="padding:5px;text-align:right;">{{ order.total_non_taxable_item_price }}</td>
        <td style="padding:5px;text-align:right;">{{ order.total_non_taxable_item_tax }}</td>
    </tr>
</table>
                                                                                                ```



Step 8 : Select code view again and save

Updated on: 05/10/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!