Support » Plugin: WooCommerce QuickPay » WooCommerce QuickPay and WPML compatibility

  • Hi,

    My name is David from the WPML Compatibility team. I’m writing to you about helping to resolve an issue between WPML and WooCommerce QuickPay.

    The issue is that E-mail strings won’t display translated when using WooCommerce QuickPay payment method.

    This happens because the confirmation of the order is made in the background and it always uses the default language.

    One way to resolve this is by adjusting the return URL to include language information. This way WPML will switch to the correct language before sending the email and everything will work as expected.

    To do this, you can edit ‘classes/woocommerce-quickpay-helper.php’ and look for the get_callback_url() function. In that function, change site_url with home_url

    This is because home_url includes language information, while site_url doesn’t.

    (reported in https://wpml.org/forums/topic/e-mail-strings-wont-translate/)

    We’d like to ask your help in resolving that issue, we want our shared clients to have a fast solution and reduce future support requests.

    Please let me know if you can consider including that fix in WooCommerce QuickPay.

    Thanks!

    David García Watkins
    WPML Compatibility Team
    OnTheGoSystems
    http://www.onthegosystems.com
    The makers of WPML, Toolset and ICanLocalize

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there David 🙂
    I am trying to connect Quick Pay to the Faroese language available in Quick Pay, but I cannot seem to add it on the back and and therefore (I presume) I get an error message saying payment gateway cannot be reached? I am using wpml and have set Faroese as the default language…will editing the callback url help in this case?
    thanks in advance
    Linda

    Hi Linda

    In the issue I am reporting here, the callback URL works in both languages.
    The problem is only that strings are translated or not.

    I’m sorry but I don’t think this has anything to do with your problem.

    Feel free to open a support ticket in the WPML forum and we’ll see what we can do:

    https://wpml.org/forums/forum/english-support/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.