GithubHelp home page GithubHelp logo

france-commerce-regions-starter's Introduction

France Commerce Regions Starter

Freelancer

Usage

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).

Data structure

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

Requirements

  • Liferay Commerce 1.1.1

Installation

  • 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.

Resources

Liferay Commerce Documentation: Adding Regions To Liferay Commerce’s Country List

ISO 3166-2:FR - wikipedia.org, iso.org

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.