The plugin allows you to create cities. These cities can be specified in the exchange direction settings.
After activation, the plugin creates a "Cities" section in the admin panel.
Plugin Settings
The plugin settings are located in the "Cities" - "Settings" section.
The following settings are available:
Minimum and Maximum Amount Settings
When specifying a city for an exchange direction, you can specify your maximum and minimum transfer amounts, which are used in the export file.
The minimum and maximum amounts are not included in the exchange calculator. They are displayed for informational purposes only in the export file.
Param Tag Settings
If this option is enabled, each city will be able to specify its own param tag for the export file.
When this option is enabled, the general param tag from the export file settings is disabled. Only the city-specific settings are applied.
Hide city block in exchange direction
For SEO optimization, a block listing the exchange directions for various available cities is displayed below the exchange form on the website. This setting disables the display of this block.
Disable city remembering
When a user selects a city in the exchange form, that city is remembered and automatically substituted in other exchange forms. This setting disables city remembering.
Creating cities
To use cities in exchange directions, they must first be created. All created cities are located in the "Cities" section. From this section, you can add, edit, dеlete, activate, and deactivate a city.
Settings for adding/editing a city:
City
City name.
XML value
XML value of the city.
Status
Active status. Inactive cities disappear from the selection in exchange directions.
Using the plugin
Once the plugin settings are configured and cities are created, you can use the plugin in the exchange direction. To do this, when editing an exchange, go to the "Cities" tab.
Cities can only be assigned to an existing exchange direction.
To add a city, in the open "Add City" tab, specify the city, exchange rate, and other parameters.
Once the information is filled in, click the "Add" button.
Added cities are located below the adding form as closed tabs.
Clicking on the desired tab will open it, allowing you to edit the details of an existing city.
After editing a city, be sure to click the "Save" button.
To dеlete a city, click the "dеlete" button.
After completing the settings, cities will be displayed as a list in the exchange request creation form.
In the "Requests" section of the admin panel, the city is displayed in the "Other data" tab.










