Collect VAT numbers on your Shopify store

If you have customers in the European Union, South Africa or India, it is important to collect their VAT numbers if needed. 

Quaderno allows your store to collect VAT numbers from your customers and automatically include them on your invoices.
It is currently not possible to add additional fields to the checkout form in Shopify. However, you can collect VAT numbers from the customer registration or the cart pages.

Customer Registration Page

You can add a new VAT number field to the customer registration form. This will allow your customers to enter their VAT registration numbers when they set up their customer accounts in your store.
This new field should be added to the customer registration file in your theme. VAT numbers will be stored as part of customer notes and Quaderno will automatically include them on your invoices.
To add the VAT number field to the customer registration page:
  1. In your Shopify admin, go to Online Store > Themes. 
  2. Click the "..." button, then click Edit HTML/CSS. 
  3. Select customers/register.liquid in the left sidebar. Read this article if you don't have a customer registration form.
  4. Insert the following code snippet inside the <form>. 
<!-- Shopify Customer Registration -- Capture VAT numbers from customers. Used by quaderno.io. -->
<label for="vat_number">VAT Number</label>
<input id="vat_number" type="text" name="customer[note][vat_number]" />

And this is the result. We'll show the customer's VAT number on all her purchases.

Cart Page

The field to capture VAT numbers can be also placed on the cart page so customers can enter their numbers just before the checkout. 
In order to do so, you need to add the following code snippet to the cart file in your theme. VAT numbers will be stored as cart attributes and Sufio will automatically include them on your invoices.
To add the VAT number field to the cart page:
  1. In your Shopify admin, go to Online Store > Themes. 
  2. Click the "..." button, then click Edit HTML/CSS. 
  3. Select cart-template.liquid in the left sidebar. 
  4. Insert the following code snippet inside the <form>.
<!-- Shopify Shopping Cart -- Capture VAT numbers from customers. Used by quaderno.io -->
<label for="vat_number">VAT Number</label>
<input type="text" id="vat_number" name="attributes[vat_number]" value="{{ cart.attributes['vat_number'] }}">
This is the result. We'll collect the customer's VAT number in the cart page.

Still need help? Contact Us Contact Us