Include your customers' GST numbers

If your online store sells to business customers in Canada, New Zealand, Malaysia or Singapore, it is essential that you include your customers' GST numbers on all the invoices that you create. 

Sufio allows you to capture GST numbers from your customers and automatically include them on your invoices.

Since Shopify does not allow to add additional fields to the checkout form, you can capture your business customers' GST numbers in other parts of your store.

Customer registration page

You can add a new GST number field to the customer registration form in your Shopify store. This will allow your customers to enter their GST numbers when they set up their customer accounts in your store.

You should add this field to the customer registration file in your Shopify theme. GST numbers will be stored as part of customer notes and Sufio will automatically include them on your invoices.

To add the GST number field to the customer registration page:  

  1. Go to the page Online StoreThemes in your Shopify store admin. 
  2. Click the Actions button, then click Edit code
  3. Select customers/register.liquid in the left sidebar. 
  4. Insert the following code snippet inside the <form>. A good place for the field is before the Email field.

<!-- Shopify customer registration -- capture GST numbers from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). -->
<label for="vat_reg_no">GST Number</label>
<input id="vat_reg_no" type="text" name="customer[note][GST Number]" placeholder="GST Number" />

Shopify registration page GST

GST number field on the Customer registration form. 

Cart page

Alternatively, you can capture GST Numbers on the cart page so that your customers can enter their business numbers just before the checkout.

In order to do so, you need to add a code snippet to the cart file in your theme. GST numbers will be stored as cart attributes and Sufio will automatically include them on your invoices.

To add the GST number field to the cart page:  

  1. Go to the page Online StoreThemes in your Shopify store admin. 
  2. Click the Actions button, then click Edit code
  3. Select cart.liquid in the left sidebar. 
  4. Insert the code snippet inside the <form>. A good place for the field is just before the Check out button. 

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

Note

If your store uses cart drawer (also called ajax cart), this code snippet needs to be added to a different file than cart.liquid. In most cases, it needs to be added to ajax-cart-template.liquid file.

Need help?

If you need help with adding the GST number field to your template, feel free to contact one of our Shopify Expert partners and they will be happy to help you!