Sufio gives you the option to rename or localize the buttons and the error messages in the VAT registration form.
The following table shows all the label names, their default values and their use within the VAT registration form:
Label name | Default text | Description |
---|---|---|
addVatNumber | Add VAT Number | Field name |
cancel | Cancel | Button name |
Field name | ||
emailInvalid | Email is invalid | Error message copy |
emailRequired | Email is required | Error message copy |
exemptionFailed | Exemption failed | Error message copy |
save | Save | Button name |
validationFailed | Validation failed | Error message copy |
vatNumber | VAT number | Field name |
vatNumberInvalid | VAT number is invalid | Error message copy |
vatNumberNotExempt | VAT number is not exempt | Error message copy |
vatNumberRequired | VAT number required | Error message copy |
vatRegistered | VAT registered | Success message copy |
- To change one or more of the labels, modify the the texts in the brackets in the following code snippet:
- In your Shopify admin, go to the Online Store → Themes page.
- Click on the Actions button, then click on Edit code.
- Copy the edited snippet and paste it inside the initialization script in the themes.liquid file. Make sure you add a comma just before the snippet. The resulting script will look like this:
- Click on Save to apply the changes.
You can also use the translate filter functionality to localize the VAT registration form. This way, when your customer changes the store language, the VAT registration form language changes, too.
- Copy the following code snippet and paste it inside the initialization script in the themes.liquid file:
- Click on Save to apply the changes.
- In the Code editor, go to the Locales folder. Open the default en.default.json file, and at the end of the file, just before the ending bracket, copy and paste the following code snippet. Make sure you add a comma just before the snippet.
- Next, open the file corresponding to the other languages or regions used in your Shopify store, like de.json for German.
- Similar to step 3, insert the JSON snippet towards the end of the file, just before the closing bracket. Make sure you add a comma just before the snippet. In this example, the translations are in German; modify the texts in the brackets to your desired language.
- Click on Save to apply the changes and repeat steps 3—4 for every language you support.
For more information about localization and how to use the translate filter, we recommend you to visit the Shopify documentation on the translate filter and on the Storefront locale files.
Need help?
Do you need help with setting up your Sufio account? Please contact our support team. We'll be happy to assist.
Invoices for Shopify stores in the EU
Let Sufio automatically send invoices and receipts for every order made in your store.
Get Sufio - Invoices for EU stores from the Shopify App Store