This module allows you to add France regions automatically when initializing a Liferay Commerce site with an Accelerator or when using the Health Check feature (Site > Commerce > Settings > Health Check > Commerce Countries > Fix issue).
Regions are stored in a JSON file regions.json
following this structure:
[
...
{
"priority": 10,
"code":"IDF",
"name":"\u00cele-de-France"
},
...
]
Each JSON object has 3 attributes:
- priority: order in which the region is listed
- code: region's code based on ISO 3166 code without
FR-
prefix - name: region's name escaped to Unicode
- Liferay Commerce 1.1.1
- Download the
.jar
file in releases and deploy it into Liferay.
or
- Clone this repository, build the module with
./gradlew build
and deploy it into Liferay.
Liferay Commerce Documentation: Adding Regions To Liferay Commerce’s Country List
ISO 3166-2:FR - wikipedia.org, iso.org