/**<br />
* Init currencies<br />
*<br />
* @param array $params request parameters<br />
* @return boolean always true<br />
*/<br />
function fn_init_currency($params)<br />
{<br />
$cond = $join = $order_by = '';<br />
<br />
if ((AREA == 'C') && defined('CART_LOCALIZATION')) {<br />
$join = " LEFT JOIN ?:localization_elements as c ON c.element = a.currency_code AND c.element_type = 'M'";<br />
$cond = db_quote('AND c.localization_id = ?i', CART_LOCALIZATION);<br />
$order_by = "ORDER BY c.position ASC";<br />
}<br />
<br />
if (!$order_by) {<br />
$order_by = 'ORDER BY a.position'; <br />
}<br />
$currencies = db_get_hash_array("SELECT a.*, b.description FROM ?:currencies as a LEFT JOIN ?:currency_descriptions as b ON a.currency_code = b.currency_code AND lang_code = ?s $join WHERE status = 'A' ?p $order_by", 'currency_code', CART_LANGUAGE, $cond);<br />
<br />
if (!empty($params['currency']) && !empty($currencies[$params['currency']])) {<br />
$secondary_currency = $params['currency'];<br />
} elseif (($c = fn_get_cookie('secondary_currency' . AREA)) && !empty($currencies[$c])) {<br />
$secondary_currency = $c;<br />
} else {<br />
foreach ($currencies as $v) {<br />
if ($v['is_primary'] == 'Y') {<br />
$secondary_currency = $v['currency_code'];<br />
break;<br />
}<br />
}<br />
}<br />
<br />
if (empty($secondary_currency)) {<br />
reset($currencies);<br />
$secondary_currency = key($currencies);<br />
}<br />
<br />
if ($secondary_currency != fn_get_cookie('secondary_currency' . AREA)) {<br />
fn_set_cookie('secondary_currency'.AREA, $secondary_currency, COOKIE_ALIVE_TIME);<br />
}<br />
<br />
$primary_currency = '';<br />
<br />
foreach ($currencies as $v) {<br />
if ($v['is_primary'] == 'Y') {<br />
$primary_currency = $v['currency_code'];<br />
break;<br />
}<br />
}<br />
<br />
if (empty($primary_currency)) {<br />
reset($currencies);<br />
$first_currency = current($currencies);<br />
$primary_currency = $first_currency['currency_code'];<br />
}<br />
<br />
define('CART_PRIMARY_CURRENCY', $primary_currency);<br />
define('CART_SECONDARY_CURRENCY', $secondary_currency);<br />
<br />
Registry::set('currencies', $currencies);<br />
<br />
return true;<br />
}<br />
```<br />
<br />
Can you help me, i want to change not to divide but to multiply , thanks in advance