Notice (8): Undefined index: [APP/views/helpers/currency.php, line 28]Code |
Context $rates = $this->__retrieveCurrencies();
//Return result of conversion
return number_format($amount/$rates[$fromCurrency]*$rates[$toCurrency],0,'','');
$amount = 0
$fromCurrency = null
$toCurrency = null
$decimals = 0
$rates = array(
"EUR" => 1,
"USD" => "1.3230",
"JPY" => "106.22",
"BGN" => "1.9558",
"CZK" => "25.172",
"DKK" => "7.4363",
"GBP" => "0.84420",
"HUF" => "288.82",
"LTL" => "3.4528",
"LVL" => "0.6982",
"PLN" => "4.1866",
"RON" => "4.3592",
"SEK" => "8.8080",
"CHF" => "1.2072",
"NOK" => "7.5000",
"HRK" => "7.5865",
"RUB" => "39.3680",
"TRY" => "2.3173",
"AUD" => "1.2441",
"BRL" => "2.2721",
"CAD" => "1.3210",
"CNY" => "8.3320",
"HKD" => "10.2609",
"IDR" => "11976.74",
"ILS" => "4.9670",
"INR" => "65.0110",
"KRW" => "1491.21",
"MXN" => "16.9605",
"MYR" => "4.0054",
"NZD" => "1.5933",
"PHP" => "56.481",
"SGD" => "1.6646",
"THB" => "40.431",
"ZAR" => "10.2085"
)
CurrencyHelper::convert() - APP/views/helpers/currency.php, line 28
include - APP/views/carts/index.ctp, line 75
View::_render() - CORE/cake/libs/view/view.php, line 731
View::render() - CORE/cake/libs/view/view.php, line 426
Controller::render() - CORE/cake/libs/controller/controller.php, line 909
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 207
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Warning (2): Division by zero [APP/views/helpers/currency.php, line 28]Code |
Context $rates = $this->__retrieveCurrencies();
//Return result of conversion
return number_format($amount/$rates[$fromCurrency]*$rates[$toCurrency],0,'','');
$amount = 0
$fromCurrency = null
$toCurrency = null
$decimals = 0
$rates = array(
"EUR" => 1,
"USD" => "1.3230",
"JPY" => "106.22",
"BGN" => "1.9558",
"CZK" => "25.172",
"DKK" => "7.4363",
"GBP" => "0.84420",
"HUF" => "288.82",
"LTL" => "3.4528",
"LVL" => "0.6982",
"PLN" => "4.1866",
"RON" => "4.3592",
"SEK" => "8.8080",
"CHF" => "1.2072",
"NOK" => "7.5000",
"HRK" => "7.5865",
"RUB" => "39.3680",
"TRY" => "2.3173",
"AUD" => "1.2441",
"BRL" => "2.2721",
"CAD" => "1.3210",
"CNY" => "8.3320",
"HKD" => "10.2609",
"IDR" => "11976.74",
"ILS" => "4.9670",
"INR" => "65.0110",
"KRW" => "1491.21",
"MXN" => "16.9605",
"MYR" => "4.0054",
"NZD" => "1.5933",
"PHP" => "56.481",
"SGD" => "1.6646",
"THB" => "40.431",
"ZAR" => "10.2085"
)
CurrencyHelper::convert() - APP/views/helpers/currency.php, line 28
include - APP/views/carts/index.ctp, line 75
View::_render() - CORE/cake/libs/view/view.php, line 731
View::render() - CORE/cake/libs/view/view.php, line 426
Controller::render() - CORE/cake/libs/controller/controller.php, line 909
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 207
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
0