This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're trying to change the language on a WooCommerce order-pay page and encountering issues where the URL does not translate correctly, leading to the incorrect template being loaded. Specifically, the '?pay_for_order=true' parameter is missing in the translated URL, which causes WooCommerce to change the template.
Solution:
We recommend using WPML's feature to preserve URL arguments. You can find this setting under WPML -> Languages -> Language switcher options. Enabling this option will ensure that the 'pay_for_order' argument is preserved when switching languages on an order page. For more details, please check the documentation on preserving URL arguments here.
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket here.
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 0 reply, has 0 voices.
Last updated by 1 month, 2 weeks ago.
Assisted by: Itamar.