Herzlich willkommen

How to show the VAT number in transactional emails?

Created at: 19 Jan 2017 | Updated at: 1 Mar 2021
1. As the number is saved on the customers address, you can either use the address templates and add the VAT number like this:
{{depend vat_id}}VAT number: {{var vat_id}}{{/depend}}
Magento show VAT number in customer address templates
2. or you can use the direct call to print the VAT number in any place you want within the transactional email:
{{var order.getShippingAddress().getVatId()}}
Categories: How to