Include your customer's GSTIN

If your online store sells to business customers in India, you may need to include your customer’s GSTIN (Goods and Services Tax Identification Number) on the invoices you create.

Sufio is an invoicing app for Shopify stores that helps you collect GSTINs from your customers and automatically include them on their invoices.

Shopify does not allow additional fields to be added to the checkout form. However, you can collect GSTINs from customers in other parts of your store.

In this article, you will learn how to collect GSTINs using:

Customer registration form

To collect GSTINs in your Shopify store, you can add a GSTIN field to your customer registration form.

This allows business customers to enter their GSTIN when they create an account in your online store.

Shopify registration page GSTIN

GSTIN field on the Customer account page

Once a customer enters their GSTIN, it will be stored in your Shopify admin as part of their customer notes.

Sufio will then automatically include the GSTIN on the invoices sent to the customer.

Add the GSTIN field to the customer registration form

To add the GSTIN field to your customer registration form, customize your Shopify store theme:

  1. In your Shopify admin, go to the Online Store → Themes page.
  2. Click the Actions button, then click Edit code.
  3. In the left sidebar, select customers/register.liquid. You can use the search bar at the top to find the file faster.
  4. Insert the following code snippet inside the <form> tag. A good place to add the field is before the Email field.
<!-- Shopify customer registration -- capture GSTIN numbers from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). -->
<label for="vat_reg_no">GSTIN</label>
<input id="vat_reg_no" type="text" name="customer[note][GSTIN]" placeholder="GSTIN" />

Cart page

You can add a GSTIN field to the cart page so customers can enter their GSTIN before checkout.

When a customer enters their GSTIN using this field, it will be saved as a cart attribute in your Shopify admin. Sufio will then automatically include it on the invoices sent to the customer.

Add the GSTIN field to the cart page

To add the GSTIN field to the cart page, customize your Shopify store theme:

  1. In your Shopify admin, go to the Online Store → Themes page.
  2. Click the Actions button, then click Edit code.
  3. In the left sidebar, select cart.liquid. You can use the search bar at the top to find the file faster.
  4. Insert the code snippet inside the <form> tag. A good place to add the field is just before the Check out button.

<!-- Shopify shopping cart -- capture GSTIN numbers from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). -->
<div class="vat-reg-number">
  <label for="vat_reg_no">GSTIN</label>
  <input type="text" id="vat_reg_no" name="attributes[VAT Registration Number]" value="{{ cart.attributes['VAT Registration Number'] }}">
</div>

Note

Depending on your Shopify theme, you may need to add the code snippet to a different file than cart.liquid. In many themes, this file is named main-cart-footer.liquid.

If your store uses a cart drawer, also known as an Ajax cart, the correct file is usually ajax-cart-template.liquid.

Customer notes

In addition to collecting GSTINs through your online store, you can add them manually in your Shopify admin.

This can be useful if your sales team regularly creates orders on behalf of customers, or if you need to create an order for a new customer manually.

gstin-shopify-customer-note

Add the GSTIN as a customer note

To add a customer’s GSTIN as a customer note:

  1. In your Shopify admin, go to the Customers page.
  2. Select a customer, or click Add customer to create a new customer.
  3. Enter the GSTIN in the Customer Note field. Use the prefix GSTIN:, for example, GSTIN: 0717USA12345NF1.
  4. Click Save to apply your changes.

You can add the GSTIN before or after creating the order. Sufio will automatically sync the number and update the customer’s invoices.

Need help?

Having trouble customizing your Shopify store theme? Contact our support team. We’ll be happy to help.