• Resolved tonimerc

    (@tonimerc)


    Hi,

    I’ve just upgraded to paypal payments from paypal checkout. I was using a filter to change the credit card express checkout to default to IE but since upgrading it is no longer working. I was using the following:

    function paulsmenswear_ppec_use_ireland_locale_code( $default_code ) {
    return ‘en_IE’;
    }
    add_filter(‘woocommerce_paypal_express_checkout_paypal_locale’,’paulsmenswear_ppec_use_ireland_locale_code’,10,1);

    Is it possible to amend this code to continue to have it default to IE rather than UK?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @tonimerc,

    The default country selection (if one is requested) is currently decided by PayPal based on a few different factors like the locale in eventual PayPal cookies on the device or the user location.
    This filter won’t work with PayPal Payments but we are working on improving the interactions between the WooCommerce checkout fields and the PayPal smart card fields. Ideally, the information is transferred from the regular checkout fields without requiring any additional input from the user (including the country selection).

    Kind regards,
    Niklas

    Thread Starter tonimerc

    (@tonimerc)

    Hi Niklas,

    Thanks for your reply. Just wondering why the filter worked on the previous paypal checkout plugin that I was using but not on this one?

    Is there any way to customise the Paypal locale_code on the checkout?

    Many thanks
    Toni

    • This reply was modified 2 years, 10 months ago by tonimerc.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @tonimerc,

    The Checkout plugin was working differently in this regard as it was sending the WordPress locale to PayPal, which could be overwritten with a filter.
    With PayPal Payments, the default language (and country selector in the credit card smart fields) is automatically detected by PayPal, usually fairly accurate.
    But for the next plugin update, we are working on improving the smart card field behavior so that the country selector and the rest of the fields should ideally reflect the state of the respective WooCommerce checkout fields.

    Kind regards,
    Niklas

    Plugin Support Femi

    (@femiyb)

    Hi there

    We have not heard back from you in a while, so I’m marking this thread as resolved.
    If you have any further questions, please feel free to reopen this topic or create a new one.

    Cheers! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Default Country from UK to Ireland’ is closed to new replies.