Hello people:
Images attached error. I have defined 2 coins, dollar and Argentine pesos. the problem is when I select the currency to the Argentine peso from the client side, which does not occur when selecting dollar.
any idea how to fix this error?
this is the function:
function displayRawPrice($number, $currency_code = '') {
global $osC_Language;
if (empty($currency_code) || ($this->exists($currency_code) == false)) {
$currency_code = (isset($_SESSION['currency']) ? $_SESSION['currency'] : DEFAULT_CURRENCY);
}
return $this->currencies[$currency_code]['symbol_left'] . number_format(osc_round($number, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], $osC_Language->getNumericDecimalSeparator(), $osC_Language->getNumericThousandsSeparator()) . $this->currencies[$currency_code]['symbol_right'];
}
and this is de line 108:
return $this->currencies[$currency_code]['symbol_left'] . number_format(osc_round($number, $this->currencies[$currency_code]['decimal_places']), $this->currencies[$currency_code]['decimal_places'], $osC_Language->getNumericDecimalSeparator(), $osC_Language->getNumericThousandsSeparator()) . $this->currencies[$currency_code]['symbol_right'];