Why is VAT not showing on my Order Printer template invoices?

Hello, now I have prices with VAT included, so I updated my Order Printer template invoices

But for a reason I can’t explain, VAT isn’t showing up

Any ideas would greatly help me :slightly_smiling_face: !

Thank you in advance

I have tried:

{{ tax_line.price | money }}

as well as

{% for tax_line in line_item.tax_lines %}> {{ tax_line.price | money }} {{ tax_line.title }}
{% endfor %}>

as well as

{% if line_item.tax_lines %}> > {% for tax_line in line_item.tax_lines %}> {{ tax_line.price | money }} {{ tax_line.title }}
{% endfor %}> > {% endif %}

Here is the complete code below:

{{ shop_name }}>

Numéro de la commande : {{ order_name }}>

Date de la facture : {{ “now” | date: “%d/%m/%y” }}
Date du règlement : {{ “now” | date: “%d/%m/%y” }}

{{ shop.address }}
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}
{{ shop.country }}>


Détails des services> > > > > > > > > > > {% for line_item in line_items %}> > > > > > {% endfor %}> >

Quantité Service Prix unitaire
{{ line_item.quantity }} x {{ line_item.title }} > {% if line_item.original_price != line_item.price %}> ~~{{ line_item.original_price

{% if transactions.size > 1 %}> ### Détails de la transaction> > > > > > > > > > > {% for transaction in transactions %}> > > > > > > {% endfor %}> >

Type Montant Action Statut
{{ transaction.gateway payment_method }} {{ transaction.amount money }}

{% endif %}> > ### Détails du paiement> > > > > > > {% for discount in discounts %}> > > > > {% endfor %}> > > > > > > > > {% if total_paid != total_price %}> > > > > > > > > {% endif %}>

| Sous-total : | {{ subtotal_price | money }} |
| - | - |
| Promotion incluse “{{ discount.code }}” | {{ discount.savings | money }} |
| TVA : | {{ tax_line.price | money }} |
| Montant TTC : | {{ total_price | money }} |
| Total payé : | {{ total_paid | money }} |
| Montant impayé : | {{ total_price | minus: total_paid | money }} |

{% if note %}> ### Note>

{{ note }}

{% endif %}> > {% if shipping_address %}> ### Bénéficiaire> > > {{ shipping_address.name }}
{% if shipping_address.company %}> {{ shipping_address.company }}
{% endif %}> {{ shipping_address.street }}
{{ shipping_address.city }}> {{ shipping_address.province_code }}> {{ shipping_address.zip | upcase }}
{{ shipping_address.country }}>
{% endif %}>

N°TVA : FR27817672272

Je reste à votre disposition si vous avez des questions.>
Contactez-moi à l’adresse {{ shop.email }}

Hi @PascalDegut ,

Have you tried one of the following?

{{ total_tax | money }} or {{ tax_price | money }}

The word line in the variables implies that they are part of the cart items (so you need to loop through them to get a value for each one).

thank you very much, this worked :slightly_smiling_face:

{{ total_tax | money }}
1 Like

Hi

I am struggling to show line item tax where the tax is 0%. How can I get this to show.

I have tried a number of things such as

{% for tax_line in line_item.tax_lines %}
{% if tax_line.rate==0 %}
0.00%
{% else %}
{{ tax_line.rate | times: 100 }}%

{% endif %}

{% endfor %}

Did you figure this out ? i’m trying to get the 0% to show up as well

Hi

Afraid not, I contacted support about this and similar issues, which they have logged and may look into. No joy so far, sorry.

Oh no, that’s a shame, it must be possible as if you use the order printer
template app it shows 0% .

There must be a way to do it.

Hi

This is what I am using at the moment, forcing a zero where there is no VAT.

Note - other TD have been removed to make it simpler to read…

{% for line_item in line_items %}

{% if line_item.tax_lines %} {% for tax_line in line_item.tax_lines %} {{ tax_line.rate | times: 100 }}% {% endfor %} {% else %} 0% {% endif %} {% endfor %}
1 Like

Legend, that works perfectly!

1 Like

Thanks - I will update once Shopify release anything as a permanent fix for this and other bits raised. One of them being how discounted items dont show the correct prices and VAT in line items.