Skip to main content

VAT Exemption on Product

Product page contains all details about each product and is frequently visited by customers in order to explore more details about each product. Customer VAT Number can be collected on the product page.

Product page

Enable Collect VAT Number in Zenvio

  1. In your Zenvio account, go to the Integrations → Shopify → Configuration
  2. Check the Enable EU VAT Exemptions checkbox in Taxes section
  3. Make sure the Collect EU VAT Numbers is checked too
  4. Save your changes

Add Zenvio Script to your store

  1. Go to Shopify Admin → Online Store → Themes
  2. Click Edit code
  3. Search for Layout → theme.liquid in the left sidebar
  4. Copy and paste the following code snippet inside the field. An ideal place is at the end of the file, just before the ending tag.
    <script async src="https://cdn.zenvio.com/apps/shopify/client.js" id="zenvio-script" ></script>
    <script>
    document.getElementById("zenvio-script").onload = function() {
    Zenvio.configure({
    customer: {
    id: {{ customer.id | json }},
    email: {{ customer.email | json }},
    metafields: {{ customer.metafields.zenvio | json }},
    },
    cart: { attributes: {{ cart.attributes | json }} }
    });

    Zenvio.VAT.onProduct();
    };
    </script>
  5. Save template!