currency_primary

Triggered on main currency change in store settings.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['old_code'] string Previous main currency code.
$params['code'] string New main currency code.
$params['old_rate'] string Exchange rate of new main currency relative to that of previous main currency.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

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