We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Adding taxes line items to the Order printer template

Adding taxes line items to the Order printer template

SardinesStudio
New Member
4 0 0

Hello I wish to add the specific sales taxes detail in my invoice and not just a total of taxes as in canada we have federal and provicial sales taxes.

This is the current code I have

<tr>
<td colspan="4" style="text-align: right;">Taxes</td>
<td style="text-align: right;">{{ order.tax_price | money }}</td>
</tr>

Gives me this - Total of all taxes

SardinesStudio_2-1750108488656.png

 

 

 

I want to have the tax details like this

SardinesStudio_1-1750108460268.png

 

If anyone can help, thanks

 

Replies 3 (3)

TheScriptFlow
Excursionist
45 1 3

Hey @SardinesStudio,

Would you like to share the code of the Shipping label template so that I can update it for you.

Thanks

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com
- For any custom section queries, bug fixing please visit: Level 2 Fiverr Profile
- Buy Me a Coffee? Nah… Let’s Upgrade to a Car
- If my solution was helpful, mark it as a solution and hit the like button!
SardinesStudio
New Member
4 0 0

Hey there, I am not sure what or why you need the shipping label template, maybe you can guide me.

This is for the invoice template in the Shopify Order Printer.

thanks

SardinesStudio
New Member
4 0 0

OK I've had some success...

Changing the code to this adds the lines for my individual tax rates like this 

SardinesStudio_0-1750273868166.png

 

<tr>
<td colspan="5" style="text-align: right;">{% for tax_line in order.tax_lines %}
Tax ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%):
{{ tax_line.price | money }}
{% endfor %}</td>

</tr>