|
1 |
| -# CurrencySymbol |
| 1 | +# Magento_CurrencySymbol module |
2 | 2 |
|
3 |
| -**CurrencySymbol** enables the creation of custom currencies and management of currency conversion rates. |
| 3 | +This module enables creating custom currencies and managing currency conversion rates. |
4 | 4 |
|
5 |
| -## Controllers |
| 5 | +## Installation |
6 | 6 |
|
7 |
| -### Currency Controllers |
8 |
| -***CurrencySymbol\Controller\Adminhtml\System\Currency\FetchRates.php*** gets a specified currency conversion rate. |
9 |
| -Supports all defined currencies in the system. |
10 |
| -***CurrencySymbol\Controller\Adminhtml\System\Currency\SaveRates.php*** saves rates for defined currencies. |
| 7 | +Before installing this module, note that the Magento_CurrencySymbol is dependent on the Magento_Widget module. |
| 8 | + |
| 9 | +For information about a module installation in Magento 2, see [Enable or disable modules](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html). |
| 10 | + |
| 11 | +## Extensibility |
| 12 | + |
| 13 | +Extension developers can interact with the Magento_CurrencySymbol module. For more information about the Magento extension mechanism, see [Magento plugins](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html). |
| 14 | + |
| 15 | +[The Magento dependency injection mechanism](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento_CurrencySymbol module. |
| 16 | + |
| 17 | +### Events |
| 18 | +The module dispatches the following events: |
| 19 | +- `admin_system_config_changed_section_currency_before_reinit` event in the `\Magento\CurrencySymbol\Model\System\Currencysymbol::setCurrencySymbolsData` method. Parameters: |
| 20 | + - `website` website id (`string|null` type) |
| 21 | + - `website` store id (`string|null` type) |
| 22 | +- `admin_system_config_changed_section_currency` event in the `\Magento\CurrencySymbol\Model\System\Currencysymbol::setCurrencySymbolsData` method. Parameters: |
| 23 | + - `website` website id (`string|null` type) |
| 24 | + - `website` store id (`string|null` type) |
11 | 25 |
|
12 |
| -### Currency Symbol Controllers |
13 |
| -***CurrencySymbol\Controller\Adminhtml\System\Currencysymbol\Reset.php*** resets all custom currency symbols. |
14 |
| -***CurrencySymbol\Controller\Adminhtml\System\Currencysymbol\Save.php*** creates custom currency symbols. |
| 26 | +For information about an event in Magento 2, see [Events and observers](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/events-and-observers.html#events). |
| 27 | + |
| 28 | +### Layouts |
| 29 | +This module introduces the following layouts in the `view/adminhtml/layout` directory: |
| 30 | +- `adminhtml_system_currency_index` |
| 31 | +- `adminhtml_system_currencysymbol_index` |
| 32 | + |
| 33 | +For more information about a layout in Magento 2, see the [Layout documentation](http://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-overview.html). |
| 34 | + |
| 35 | +## Additional information |
| 36 | + |
| 37 | +### Controllers |
| 38 | + |
| 39 | +#### Currency Controllers |
| 40 | +- `CurrencySymbol\Controller\Adminhtml\System\Currency\FetchRates.php` - gets a specified currency conversion rate. |
| 41 | +Supports all defined currencies in the system. |
| 42 | +- `CurrencySymbol\Controller\Adminhtml\System\Currency\SaveRates.php` - saves rates for defined currencies. |
15 | 43 |
|
| 44 | +#### Currency Symbol Controllers |
| 45 | +- `CurrencySymbol\Controller\Adminhtml\System\Currencysymbol\Reset.php` - resets all custom currency symbols. |
| 46 | +- `CurrencySymbol\Controller\Adminhtml\System\Currencysymbol\Save.php` - creates custom currency symbols. |
0 commit comments