PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Localization PayPal

  1. I've searched all available info on the forum/google & documentation but I'm stuck. I have set up a form with PayPal add-on, in 3 languages with WPML. Whatever language is chosen, PayPal is displayed in Dutch. Would be better if it were English, at least.

    Tips anyone?

    Posted 7 years ago on Thursday February 2, 2012 | Permalink
  2. Anyone please?

    Posted 7 years ago on Monday February 6, 2012 | Permalink
  3. joeblogs
    Member

    Hi

    I also would like the same option, as I have a French Paypal account, but I also want site users to have Paypal in English, occasionally they land on Paypal in French. It would be very useful to be able to set localisation in the plugin.

    Posted 6 years ago on Sunday October 14, 2012 | Permalink
  4. Apparently, PayPal reads the visitor's browser cookie to determine the language. If there is no cookie, the default is US English. However, it appears you can send the lc parameter to PayPal and set a language.

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables

    If that is possible, you could allow your visitors to select a language via radio button or drop down, then send that value in the PayPal query.

    http://www.gravityhelp.com/documentation/page/Gform_paypal_query

    Posted 6 years ago on Sunday October 14, 2012 | Permalink
  5. joeblogs
    Member

    Hi Chris

    Thanks for this, but this doesn't really help as there is no example on how to code this. I am ok with editing php and adding some code, but I am unsure how to use the query strings in GF forms.

    With other plugins I have used, all that I have done is add some code to the plugin,

    <input type='hidden' name='LC' value='EN'>

    which has worked, it just seems quite complicated with the way that you have mentioned above.
    Will there be an option to set the language in the plugin in the near future?

    Regards, Joe

    Posted 6 years ago on Tuesday January 29, 2013 | Permalink
  6. The example is on this page:
    http://www.gravityhelp.com/documentation/page/Gform_paypal_query

    It is more complicated than adding an additional input to the form. If you need assistance with that, you may want to get assistance from a developer on our job board.

    http://www.gravityhelp.com/forums/forum/job-board

    I'm not sure if the option to set the language will be added in the future, but I'll tag this as a feature request.

    Posted 6 years ago on Tuesday January 29, 2013 | Permalink
  7. joeblogs
    Member

    Hi Chris

    I paid nearly 200 dollars for this plugin, (the most I have ever paid for a plugin), and now I need to pay a developer to have a small extra functionality? Wow. The link above, http://www.gravityhelp.com/documentation/page/Gform_paypal_query is no use to me, it is to vague and doesn't explain it in any detail, or how I could modify it to do what I want. Thanks,

    Kind regards, Joe

    Posted 6 years ago on Thursday January 31, 2013 | Permalink
  8. joeblogs
    Member

    Hi

    This is the information I was given by support:-

    To get your PayPal page's language changed upon form submission, you can use this PHP snippet into your theme's functions.php file.

    To get your PayPal page's language changed upon form submission, you can use this PHP snippet into your theme's functions.php file. This example sets the language to Japanese:
    http://pastebin.com/HZ7TVz9M
    **********************************************

    I used this in my functions.php file:-

    add_filter('gform_paypal_query', 'update_paypal_query', 10, 3);
    function update_paypal_query($query_string, $form, $entry){
    
    $query_string .= "&lc=en_US";
    return $query_string;
    }

    and it seems to be working.......

    Joe

    Posted 6 years ago on Monday March 18, 2013 | Permalink
  9. Thank you for the update Joe. Sorry for the earlier misinformation and inconvenience.

    Posted 6 years ago on Tuesday March 19, 2013 | Permalink

This topic has been resolved and has been closed to new replies.