All Collections
Order Printer Pro
Customizing your documents
Add your customers' VAT number to your templates
Add your customers' VAT number to your templates

Explains how you may display your customers VAT number collected as customer notes in your Order Printer Pro templates

Blanca Gongora avatar
Written by Blanca Gongora
Updated over a week ago

Adding your customers' VAT IDs in our Order Printer Pro templates is totally possible. However, it all depends on how these details are being collected in your store.

Most people collect these details as customer notes or cart attributes, and here we'll show you how to get them added to your documents.

Display the VAT ID from your customer notes

You can show the VAT registration number on the document as long as you're already capturing or adding it as customer notes. However, you need to use a unique format to identify that VAT number in the note. For example, using VAT ID: 1234567890:

Once that's done, you may follow these steps:
โ€‹

1- In your Order Printer Pro, go to the "Manage templates" page.

2- Click the "Edit template" button on the template you want to modify.

3- In the code section, find the location where you want the customer's VAT number to appear. We suggest you place it below the customer billing address.

4- Add this short snippet:

VAT {{ customer.note | split: "VAT ID" | last | split: " " | first }}

Please ensure to update the "VAT ID" part, so it's based on what you're using to identify the number to standardize the setup.

Display the VAT ID from the order cart attributes

If you're collecting your customers' VAT numbers using cart attributes, you can show that number on the templates.

Here is how:

1- Identify the attribute name collecting your customers' VAT numbers. For example, in this case, it's VAT ID:

2- In your Order Printer Pro, go to the "Manage templates" page and click the "Edit template" button on the template you want to modify.

3- In the code section, find the location where you want the customer's VAT number to appear. We suggest you place it below the customer billing address.

4- Add this short snippet:

{% for attribute in attributes %}
{% if attribute.first != "VAT ID"%} {% continue %} {% endif %}
{{ attribute.first }}:{{ attribute.last }}
{% endfor %}

That's it, this would be the outcome:

If you need any help with the process or have any questions, feel free to reach out to our support team.

Did this answer your question?