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>
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024