The basics
Configuration via code
In addition to the input masks and buttons in the Admin Interface, with which a WEBSALE online shop can be configured via a graphical user interface, it is possible to specifically overwrite or extend these settings through configuration via code.
This method allows you to define configurations directly in a JSON-like format. The settings are divided into so-called nodes for which — depending on the respective configuration — specific parameters and values are allowed.
An example of the configuration of a currency could look as follows:
This configuration defines how a currency is displayed in the shop, including the number of decimal places, the separators for thousands and decimals, and the position of the currency symbol.
Configuration via code follows the JSON format, so the JSON specification applies when writing these configuration files. This means that the syntax must be strictly observed, for example through correct bracketing and strings in quotation marks.
This method makes it possible to make complex or individual adjustments that go beyond the standard options in the Admin Interface.
A detailed overview of the available parameters and configuration options can be found in the reference under Configuration.
