docs
  1. SCAYLE Resource Center
  2. Developer Guides
  3. Checkout
  4. Customization
  5. Configure JSON
  6. Country and locale-specific overwrites

Country and locale-specific overwrites

Shop-country markets have deviations from the default configuration. These differences have to be modified for each country/locale. This is done by country and locale overwrites.

Country overwrites

The configuration may contain a top-level property countryOverwrites which can specify the same config options as on the root level, but per country.

What is specified in the country overwrites will be deep-merged on top of the rest and, therefore, only needs to specify config options deviating from the default or shop specific configuration.

Example

Country currency overwrite for localized checkout:

"countryOverwrites": { "SE": { "currency": "SEK" }, "DE": { "currency": "EUR" } }

Locale-specific overwrites

The configuration may contain another top level property localeOverwrites which can also specify the same config options as on the root level but per locale.

What is specified in the locale overwrites will be deep-merged on top of the rest and again only needs to specify config options deviating from the default or shop-specific configuration.