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.
This topic contains 20 replies, has 1 voice.
Last updated by 1 week, 6 days ago.
Assisted by: Andreas W..