Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I've had so many customers complain about the breakdown of sales tax lines, questioning why they're paying taxes for municipalities they don't live in, when its because of our physical location we're shipping from.
I'd like to combine all the tax lines into a single Sales Tax display in our email confirmation. I've changed the default notification to the following:
{% assign t = 0 %}
{% for line in tax_lines %}
{% t = line.price + t %}
{% endfor %}
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span style="color:#1b4388;">Sales Tax</span>
</p>
</td>
<td class="subtotal-line__value">
<strong style="color:#1b4388;">{{ t | money }}</strong>
</td>
</tr>
But i'm getting the error "unknown tag 't'" when trying to save. Clearly i'm assigning a variable t, so i'm not sure why its not recognizing this variable. Any tips here?
I use the old tag {{ tax_price | money }} which displays as the tax total.
<tr class="subtotal-line">
<td class="subtotal-line__title">
<p>
<span>Taxes</span>
</p>
</td>
<td class="subtotal-line__value">
<strong>{{ tax_price | money }}</strong>
</td>
</tr>
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025