PayPal site for Norway is missing

Hi From the dropdown list when choosing PayPal site, Norway is not listed, and I`m wondering witch site to chooses?

  • Vaughan

    Hi Hakonzen,

    Hope you're well?

    Currently Norway is not in the list, I have marked this as a feature request for the developer to consider in a future update.

    In the meantime, I believe you can add this option by editing the paypal gateway file.

    /wp-content/plugins/marketpress/marketpress-includes/plugins-gateway/paypal-express.php

    Find the following lines(642 - 670 or thereabouts)

    $locales = array(
                  'AR'	=> 'Argentina',
                  'AU'	=> 'Australia',
                  'AT'	=> 'Austria',
                  'BE'	=> 'Belgium',
                  'BR'	=> 'Brazil',
                  'CA'	=> 'Canada',
                  'CN'	=> 'China',
    							'FI'	=> 'Finland',
                  'FR'	=> 'France',
                  'DE'	=> 'Germany',
                  'HK'	=> 'Hong Kong',
                  'IE'	=> 'Ireland',
                  'IL'	=> 'Israel',
                  'IT'	=> 'Italy',
                  'JP'	=> 'Japan',
                  'MX'	=> 'Mexico',
                  'NL'	=> 'Netherlands',
                  'NZ'	=> 'New Zealand',
    							'PL'	=> 'Poland',
    							'RU'	=> 'Russia',
                  'SG'	=> 'Singapore',
                  'ES'	=> 'Spain',
                  'SE'	=> 'Sweden',
                  'CH'	=> 'Switzerland',
    							'TR' 	=> 'Turkey',
                  'GB'	=> 'United Kingdom',
                  'US'	=> 'United States'
                );

    Then add the Norway locale to the list like below;

    $locales = array(
                  'AR'	=> 'Argentina',
                  'AU'	=> 'Australia',
                  'AT'	=> 'Austria',
                  'BE'	=> 'Belgium',
                  'BR'	=> 'Brazil',
                  'CA'	=> 'Canada',
                  'CN'	=> 'China',
    							'FI'	=> 'Finland',
                  'FR'	=> 'France',
                  'DE'	=> 'Germany',
                  'HK'	=> 'Hong Kong',
                  'IE'	=> 'Ireland',
                  'IL'	=> 'Israel',
                  'IT'	=> 'Italy',
                  'JP'	=> 'Japan',
                  'MX'	=> 'Mexico',
                  'NL'	=> 'Netherlands',
                  'NZ'	=> 'New Zealand',
    							'PL'	=> 'Poland',
    							'RU'	=> 'Russia',
                  'SG'	=> 'Singapore',
                  'ES'	=> 'Spain',
                  'SE'	=> 'Sweden',
                  'CH'	=> 'Switzerland',
    							'TR' 	=> 'Turkey',
                  'GB'	=> 'United Kingdom',
                  'US'	=> 'United States',
                 'NO'    => 'Norway'
                );

    I haven't tested the above, but it should work, I see the Norwegian Krone is actually included in the currency list, so that part should be ok.

    Please be aware, until this is included in the MP releases, these changes will be overwritten on each plugin update, so make a note of the change, but I will ask the dev to include this in an upcoming release either way.

    Hope this helps

  • Hakonzen

    Hi there @Vaughan, and thanks for your´re reply!

    Looks like Hell´s freezin´over (Yes, I live in Hell, Norway!), and I`m lookin forward to this weekends #wcno :slight_smile:

    I tried your approach, but I just got this on the products page;

    "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\Users\Frode\Documents\Websites\www.thewayout.dev\wp-content\plugins\marketpress\marketpress-includes\plugins-gateway\paypal-express.php on line 670"
    , so I guess that was not enough to fix this. I use a local install as you see, but I don´t think that matters for this?

    Best
    Hakonz

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.