Collecting VAT numbers on Shopify

When your Shopify collect VAT numbers from your customers, Quaderno will automatically display them on your invoices, and automatically apply reverse-charge when possible.

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.

Collecting VAT numbers on the 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. Please note, the snippet would only work on customers/register.liquid. 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.
  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 their purchases:

Registration form with vat number field

🔎 For more information on adding fields to the customer registration form, check Shopify's official documentation here.

Collecting VAT numbers on the 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 Quaderno 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 on the cart page:

Cart page with vat number field

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us