SMFHacks.com

SMF Store => Support => Topic started by: dan4ever on October 10, 2013, 10:12:34 am

Title: Swedish speaking PayPAL...
Post by: dan4ever on October 10, 2013, 10:12:34 am
Hi

My costumer is coming to a English speaking PayPAL when they are going to pay.
I'd like to come to the Swedish speaking page.

https://www.paypal.com/us/cgi-bin/...   English...
https://www.paypal.com/se/cgi-bin/...   Swedish...

Where do I change that?

/Dan
Title: Re: Swedish speaking PayPAL...
Post by: SMFHacks on October 10, 2013, 10:26:22 am
You would have to search both Sources/store2.php
And themes/default/store2.template.php
   
And do a find and replace.
Title: Re: Swedish speaking PayPAL...
Post by: dan4ever on October 10, 2013, 10:47:59 am
I only find store2 in this directions...

I don't have any classifieds2
Title: Re: Swedish speaking PayPAL...
Post by: SMFHacks on October 10, 2013, 10:57:59 am
Ooops sorry got confused meant store
Title: Re: Swedish speaking PayPAL...
Post by: dan4ever on October 11, 2013, 06:38:25 am
Sorry but I can't find were to change to 'se'
Title: Re: Swedish speaking PayPAL...
Post by: SMFHacks on October 11, 2013, 07:17:06 am
Do a search for the phrase paypal.com/us/cgi-bin/ and just make the change were it is found
Title: Re: Swedish speaking PayPAL...
Post by: dan4ever on October 11, 2013, 07:26:31 am
Yes, I did !!!!
No result !!!

I do not have Store.php I have Store2.php and Store2.template.php

I have SMF Store 2.5 and SMF 2.0.5
Title: Re: Swedish speaking PayPAL...
Post by: SMFHacks on October 11, 2013, 07:28:26 am
Your right I don't have the english version links using generic.

"paypal.com/cgi-bin/webscr"
You can try changing that oen not sure if it will work though
Title: Re: Swedish speaking PayPAL...
Post by: dan4ever on October 11, 2013, 08:27:37 am
Did't work...

Maybe in storeipn2.php ????

In that case, where??
Title: Re: Swedish speaking PayPAL...
Post by: SMFHacks on October 11, 2013, 08:28:18 am
No would only be in those files.
Title: Re: Swedish speaking PayPAL...
Post by: dan4ever on October 11, 2013, 02:39:16 pm
OK, it works...

I change lc

In Store2.php
line 8137   $buildurl .= 'lc=sv_SE';
and
line 8213       <input type="hidden" name="lc" value="sv_SE" />';

My references is: https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0709B (https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HI0709B)

But this should change after the language the user select, I think...

/Dan
Title: Re: Swedish speaking PayPAL...
Post by: SMFHacks on October 11, 2013, 02:45:55 pm
Ok good to know.