If your online store sells to consumers in Spain, you need to include your customers' DNI/NIF/NIE numbers on all the invoices you create.
DNI/NIF/NIE are identification numbers used in Spain to identify consumers and legal entities carrying out commercial activities.
Sufio allows you to capture your customers' DNI/NIF/NIE and automatically include them on your invoices.
Since Shopify does not allow you to add additional fields to the checkout form, you can capture your customers' DNI/NIF/NIE numbers on different pages in your online store.
You can add a new DNI/NIF/NIE field to your Shopify store's customer registration form. This will allow your customers' to enter their tax identification number when setting up their new customer accounts on your online store.
DNI/NIF/NIE numbers will be stored as part of customer notes, and Sufio will automatically include them on your invoices.
To add the DNI/NIF/NIE input field to the customer registration form:
- In your Shopify admin, go to the Online Store → Themes page.
- Click the Actions button, then click Edit code.
- Select customers/register.liquid in the left sidebar. You can also use the upper search bar for a faster search.
- Insert the following code snippet inside the
<form>
. A good place for the code is just before the Email field.
As an alternative, you can capture DNI/NIF/NIE on the cart page. Your customers will then be able to enter it just before the checkout process.
DNI/NIF/NIE numbers will be stored as a cart attribute, and Sufio will automatically include them on your invoices.
To add the DNI/NIF/NIE input field to the cart page:
- In your Shopify admin, go to the Online Store → Themes page.
- Click the Actions button, then click Edit code.
- Select cart.liquid (or cart-template.liquid) in the left sidebar. You can also use the upper search bar for a faster search.
- Insert the code snippet inside the
<form>
. A good place for the field is just before the Check out button.
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?
Do you need help with customizing your Shopify store theme? Please contact our experienced support team. We'll be happy to assist!
Spanish invoices for Shopify stores
Let Sufio automatically send invoices and receipts for every order made in your store.
Get Sufio - Invoices for Spanish stores from the Shopify App Store