Post by koloboff » Wed Sep 22, 2010 2:07 pm

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?

Newbie

Posts

Joined
Wed Sep 22, 2010 1:56 pm

Post by billyggla » Wed Sep 22, 2010 4:18 pm

catalog/controller/payment

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';
        }  

Active Member

Posts

Joined
Mon Sep 20, 2010 7:05 am

Post by koloboff » Wed Sep 22, 2010 8:07 pm

Thanks, solved.

Newbie

Posts

Joined
Wed Sep 22, 2010 1:56 pm

Post by Qphoria » Wed Sep 22, 2010 9:29 pm

That shouldn't have been an issue. SGD was in the list of supported currencies. If the selected currency was SGD it should have stayed SGD. Anyway, good you got it working

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests