Display Tax on Order Confirmation even if tax is Zero

derekSA
New Member
1 0 0

Hi there,

We appear to have code for displaying tax in our order confirmation, but customers who paid no tax are receiving an order confirmation with no line appearing. Is there some extra code that needs to be added?

This is the code for our subtotal section:

 

			<div class="item">
				SUBTOTAL<br>
				{% if requires_shipping %}
				SHIPPING<br>
				{% endif %}
				DISCOUNT<br>
				{% for tax_line in tax_lines %}
				VAT<br>
				{% endfor %}
			</div>

			<div class="item-price">
				{{ order.line_items_subtotal_price | money }}<br>
				{% if requires_shipping %}
				{{ shipping_price | money }}<br>
				{% endif %}
				{{ discounts_savings | money }}<br>
				{% for tax_line in tax_lines %}
				{{ tax_line.price | money }}<br>
				{% endfor %}
			</div>

 


And this is how the confirmation appears in the preview:

Screenshot 2021-06-17 at 12.19.20.png

Any help welcomed!

Thanks,
Derek

0 Likes