Skip to main content

Country Formats

Country formats let you specify the pattern against which street addresses in a particular country are validated. Optionally, you can also define formats for postal ("Zip") codes, phone numbers or VAT numbers.

To work with country formats, in the CloudSuite App go to Administration > Country Formats. An overview appears, listing all countries for which the formats that have already been defined. Double-click an existing country to edit the formats or click New to create a new set of country formats.

  • Select the Country for which the formats are defined. This must not already be assigned to a different set of country formats.
  • The Address Format is the pattern in which street addresses are normally constructed. An asterisk (*) means that the field is mandatory.
  • The fields Regex ZIP, Regex Phone and Regex VAT Number let you define the format of a postal ("Zip") code, a phone number or a VAT number in the form of a regular expression. These are used for validation in the front-end of your webshop.

Regular expressions defining the VAT numbers for all so-called VIES countries have already been defined, so there is no need to add those. For more information, refer to https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s21.html.