currency_change

Triggered on currency exchange rate change in settings.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['code'] string Currency code.
$params['old_rate'] string Old exchange rate relative to main currency.
$params['new_rate'] string New exchange rate relative to main currency.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function currencyChange($params)
{
    waLog::dump($params, 'shop/myplugin/currency-change.log');
}