Skip to content
  1. Extras
  2. CurrencyRate

CurrencyRate

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

CurrencyRate

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.

ParameterDescription
inputInput value (product price).
dividerIf set, divide by this currency rate.
multiplierIf set, multiply by this currency rate.
formatPrice format.
noZerosRemove trailing zeros in the price.

Cron script

The package includes a cron script for automatic rate updates.