Skip to main content

VAT Number on Invoice

It is common in countries with VAT for sellers to include their VAT registration number (if VAT registered) in the identification details on invoices for both B2C (business-to-consumer) and B2B (business-to-business) sales.

When selling to businesses (B2B), the VAT registration number of the customer (if they are VAT registered) typically must also be included on the invoice.

You can collect customer's VAT Registration Number on Customer registration

Customer registration

To capture customer's VAT Registration Number when creating an account on your store, you need to add custom field on Customer Registration form or page.

Customer Registration with VAT Number

You need to customize your Shopify store theme and here is how to proceed:

  1. Go to Shopify Admin → Online Store → Themes
  2. Click Edit code
  3. Search for Sections → main-register.liquid or customers/register.liquid in the left sidebar
  4. Add the following code snippet inside the <form>
<div class="field">
<input id="zenvio_vat_reg_no" type="text" name="customer[note][VAT Registration Number]" placeholder="VAT Registration Number">
<label for="zenvio_vat_reg_no">VAT Registration Number</label>
</div>

You can copy or modify the HTML code below and use it in your theme.

Cart or Cart Drawer

The use of cart attributes in the cart as in the code below will ensure a direct transfer to the order detail, and Zenvio will be able to read the information from there.

info

Depending on Cart mode, different template file needs to be modified

Cart Page

If your store uses cart page, this code snippet needs to be usually added to main-cart-footer.liquid

Cart VAT Registration Number

You can copy or modify the HTML code below and use it in your theme.

  1. Go to Shopify Admin → Online Store → Themes
  2. Click Edit code
  3. Search for Sections → cart.liquid or main-cart-footer.liquid in the left sidebar
  4. Add the following code snippet inside the <form>
<div class="field">
<input class="field__input" name="attributes[VAT Registration Number]" type="text" placeholder="VAT Registration Number" value="{{ cart.attributes["VAT Registration Number"] }}">
<label class="field__label">VAT Registration Number</label>
</div>

Cart VAT Registration Number

Cart Drawer

If your store uses cart drawer, this code snippet needs to be added to different file, usually cart-drawer.liquid

Cart VAT Registration Number

Cart Drawer VAT Registration Number