Include your customer's TRN

If your online store sells to business customers in the United Arab Emirates or Saudi Arabia, you may need to include your customer’s TRN (Tax Registration Number) or TIN (Tax Identification Number) on their invoices.

These countries are part of the Gulf Cooperation Council (GCC), where VAT applies to many business transactions.

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

While Shopify checkout customization is limited and may depend on your Shopify plan, you can collect TRNs from customers in other parts of your store, such as the customer registration form or cart page.

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

Customer registration form

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

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

shopify-customer-registration-trn.png

TRN field in the Customer registration form.

Once a customer enters their TRN, it will be stored in your Shopify admin as part of their customer notes. Sufio will automatically include the TRN on the invoices sent to the customer.

Add the TRN field to the customer registration form

To add the TRN 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 TRN from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). -->
<label for="vat_reg_no">TRN</label>
<input id="vat_reg_no" type="text" name="customer[note][TRN]" placeholder="TRN" />

Cart page

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

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

Add the TRN field to the cart page

To add the TRN 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 TRN from customers. Used by Sufio for Shopify app (www.sufio.com/shopify). -->
<div class="vat-reg-number">
  <label for="vat_reg_no">TRN</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 TRNs 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.

trn-customer-note-shopify

To make sure Sufio includes the TRN on the invoice, enter it in theCustomer Note field using the prefixTRN:, for example, TRN: 100035307600003.

Add the TRN as a customer note

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

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

You can add the TRN 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.