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, changesite_url
withhome_url
This is because
home_url
includes language information, whilesite_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
https://www.onthegosystems.com
The makers of WPML, Toolset and ICanLocalize
- The topic ‘WooCommerce QuickPay and WPML compatibility’ is closed to new replies.