In the Order confirmation email sent to customers, our default email shows just one line for total taxes that the customer pays. I would like to have it split into the total for 8% taxes, and the total for 10% taxes. What kind of code would I need to put in the email, and where should I replace?
(FYI, showing taxes by 8% and 10% is required by law in Japan as of October 1st)
The current code is:
税金合計
I added this code immediately after the above code, but the taxes show up on the top line, and the JPY value does not have the same look as the below lines. (see attached image)
Added code:
{% assign tax_lines = order.tax_lines %}
{% for tax_line in tax_lines %} {% if tax_line.rate == 0.08 %}
税金(8%) {{ tax_line.price | money_with_currency }}
{% endif %} {% if tax_line.rate == 0.10 %}税金(10%) {{ tax_line.price | money_with_currency }}
{% endif %} {% endfor %}