OpenCart v1.4.9.1, PayPal Standard, http://koloboff.ru
I set SGD (Singapore dollar) as default currency everywhere (System -> Settings -> Local -> Currency; System -> Localisation -> Currency; and my PayPal account settings too) but PayPal payment window shows amount in USD.
What is wrong?
What should I do to switch PayPal payments to SGD?
catalog/controller/payment
pp_standard.php
change this
to this
pp_standard.php
change this
Code: Select all
// Check for supported currency, otherwise convert to USD.
$currencies = array('AUD','CAD','EUR','GBP','JPY','USD','NZD','CHF','HKD','SGD','SEK','DKK','PLN','NOK','HUF','CZK','ILS','MXN','MYR','BRL','PHP','PLN','TWD','THB');
if (in_array($this->order_info['currency'], $currencies)) {
$currency = $this->order_info['currency'];
} else {
$currency = 'USD';
}
to this
Code: Select all
// Check for supported currency, otherwise convert to USD.
$currencies = array('AUD','CAD','EUR','GBP','JPY','USD','NZD','CHF','HKD','SGD','SEK','DKK','PLN','NOK','HUF','CZK','ILS','MXN','MYR','BRL','PHP','PLN','TWD','THB');
if (in_array($this->order_info['currency'], $currencies)) {
$currency = $this->order_info['currency'];
} else {
$currency = 'SGD';
}
Who is online
Users browsing this forum: No registered users and 2 guests