Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with endpoint translations in WooCommerce Multilingual due to a mismatch in function signatures between WCML_Endpoints and WPML_Endpoints_Support. The example provided on the WPML documentation page uses a different method signature, causing incorrect language switching and missing translations.
Solution:
We recommend modifying the endpoint creation as follows to resolve the issue:

$my_current_lang = apply_filters('wpml_current_language', NULL);
$query_vars['view-subscriptions'] = $obj->get_endpoint_translation('view-subscriptions', $my_current_lang);

Additionally, ensure that you have updated to WooCommerce Multilingual & Multi-Currency 5.5.0 or later, which addresses this issue. You can update the plugin via Plugins > Add new on the "Commercial" tab by clicking on "Check for WPML Updates". Alternatively, you can download the latest version from your WPML account downloads page.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 20 replies, has 1 voice.

Last updated by Andreas W. 1 week, 6 days ago.

Assisted by: Andreas W..

Author Posts
April 4, 2025 at 7:26 am #16895456

severinP

Or this is just as equivalent

$query_vars['view-subscriptions'] = $obj->get_endpoint_translation('view-subscriptions');

And it would be a simpler example, but sadly as I already explained other woocommerce extensions like wishlist-for-woocommerce are already registering their endpoint like the example shows

So it is the `WCML_Endpoints::get_endpoint_translation`method that needs it's signature changed

April 4, 2025 at 10:17 am #16896637

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have forwarded your request to the Second Tier Support and will reach out again, once I receive feedback.

April 4, 2025 at 5:48 pm #16898674

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I would like to inform you that this issue has been escalated to the WCML Development Team for further revision.

May 3, 2025 at 1:57 am #16991300

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I would like to inform you that a fix for the reported issue is planned with the upcoming update of WooCommerce Multilingual & Multi-Currency 5.5.0.

June 6, 2025 at 3:43 pm #17114563

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

We’ve prepared a BETA release of WCML 5.5.0 that addresses the issue discussed in this thread. Would you be interested in testing it and sharing your feedback?

Your input is very valuable to us, as it helps ensure a better final release.

- Please note that as this is a BETA version, we recommend testing it on a staging site.
- You can download the BETA version here: https://wpml.org/download/woocommerce-multilingual-multicurrency/?section=changelog.

Thank you!

June 27, 2025 at 3:20 pm #17178093

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

This issue was fixed in WooCommerce Multilingual & Multi-Currency 5.5.0, which is available for download.

You can find the download at Plugins > Add new on the "Commercial" tab by clicking on "Check for WPML Updates".

The plugin can also be downloaded from your wpml.org account:
https://wpml.org/account/downloads/