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>
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024