Display Customer's Tax Number using Customer Note
This guideline gives information about how to display your Customer's Tax Number using Customer Note of Shopify.
If Customer's Tax number (in this article we will simply use VAT number) is required, you will need to show them on the invoices.
By default, Shopify does not allow adding additional fields on checkout, but you could try this alternative solution:
When customers sign-up for an account on your store, you can ask them to write down the VAT number, by simply adding a field to this page. The information is automatically stored in Customer Note, which will then be displayed on our Order Printer: PDF Invoice Pro app.
Here are the steps to do so:
Step 1:
- In your Shopify admin, go to the **Online Store** → **Themes** page.
- Click the **...** button next to **Customize** on your current theme, then click **Edit code**.
Step 2:
- Select **customers/register.liquid** file in the left sidebar. You can also use the upper search bar for a faster search.
- Insert the following code snippet inside the <form>. We do recommend inserting the code just before the Email field.
<label for="companyno">VAT Number</label>_
<input id="companyno" type="text" name="customer[note][VAT Number]" placeholder="VAT Number" />_
If you need other information, simply replace VAT Number with it.
Here is how it should look on the Shopify Admin:
And this is how it looks at the Customer Registration page:
(If you are not familiar with the code, you can always contact us for help).
Step 3:
In our app, simply enable the _Customer note_ option:
Please do notice that this is only applied to STARTER plan or higher.
If Customer's Tax number (in this article we will simply use VAT number) is required, you will need to show them on the invoices.
By default, Shopify does not allow adding additional fields on checkout, but you could try this alternative solution:
When customers sign-up for an account on your store, you can ask them to write down the VAT number, by simply adding a field to this page. The information is automatically stored in Customer Note, which will then be displayed on our Order Printer: PDF Invoice Pro app.
Here are the steps to do so:
Step 1:
- In your Shopify admin, go to the **Online Store** → **Themes** page.
- Click the **...** button next to **Customize** on your current theme, then click **Edit code**.
Step 2:
- Select **customers/register.liquid** file in the left sidebar. You can also use the upper search bar for a faster search.
- Insert the following code snippet inside the <form>. We do recommend inserting the code just before the Email field.
<label for="companyno">VAT Number</label>_
<input id="companyno" type="text" name="customer[note][VAT Number]" placeholder="VAT Number" />_
If you need other information, simply replace VAT Number with it.
Here is how it should look on the Shopify Admin:
And this is how it looks at the Customer Registration page:
(If you are not familiar with the code, you can always contact us for help).
Step 3:
In our app, simply enable the _Customer note_ option:
Please do notice that this is only applied to STARTER plan or higher.
Updated on: 29/01/2024
Thank you!