
CurrencyRate
Foreign exchange rates against the ruble, published on the official Bank of Russia website.

Component settings
- Enable / disable placeholders for exchange rates.
- Service URL — URL for fetching rates.
- Update date — time of last update.
Rate placeholders
If Enable placeholders is on, rates are available as [[++currency_code]], e.g.:
modx
[[++USD]]Adjusting the rate
A correction factor lets you adjust the rate. Set it as a number or a percentage.
CRcalc snippet
Converts prices to the currency set in the Manager.
| Parameter | Description |
|---|---|
| input | Input value (product price). |
| divider | If set, divide by this currency rate. |
| multiplier | If set, multiply by this currency rate. |
| format | Price format. |
| noZeros | Remove trailing zeros in the price. |
Cron script
The package includes a cron script for automatic rate updates.
