I was thinking of a way, how to display price in default and selected currency and checkout with only default currency. Realized there was simple solution to my problem, it works on local copy of opencart. However i'm not sure if it will cause some unexpected problems or even abuse, a bit scary to apply to live shop

I'm missing something here?
Here is what i did:
1. In system\library\currency.php i added a default value to $currency, instead of ' '.
Code: Select all
format($number, $currency = 'JPY', $value = '', $format = true)
2. In catalog\controller\payment\pp_standard.php changed this (i'm using only paypal):
Code: Select all
if (in_array($order_info['currency_code'], $currencies)) {
$currency = $order_info['currency_code'];
} else {
$currency = 'USD';
}
to simply
3. To display price in selected currency i'm simply adding this code in template files where i need
Code: Select all
<?php echo $this->currency->format($product_info['price'], $this->currency->getCode()); ?>