Skip Navigation

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

Problem:
If you're experiencing an issue where, a secondary language customer is redirected to the default language thank you page on your multilingual site,
Solution:
We recommend updating to the latest version of WCML, which is 5.3.2. This version includes a fix for the redirection problem.

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 4 replies, has 2 voices.

Last updated by Noman 1 year, 5 months ago.

Assisted by: Noman.

Author Posts
December 4, 2023 at 11:33 am #14986027

bjornE-6

I have a problem after some updates. WE use 2 languages on our site (DE and NL). Right now when a german customer buys something he will be redirected to the NL thank you page.

December 4, 2023 at 1:25 pm #14987159
bjornE-6

I downgraded WCML to version 5.2.1 and now the issue is gone.

Also another issue now is gone and that's: the admin confirmation e-mail of an order was always send to e-mailaddress of the main language. But for other countries we used a string translation to send the admin e-mailaddress. After updating WCML this didn't work anymore. After downgrading is does again.

December 4, 2023 at 2:59 pm #14988497

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for the additional details. I’ve escalated the thank you page redirect issue to our 2nd tier support and I will update you once I hear back about it.

Regarding the problems with admin confirmation email, it's a different issue and will be handled separately in accordance with our support policy. I've created a new ticket for this at:
https://wpml.org/forums/topic/after-updating-wcml-admin-confirmation-e-mail-always-send-to-e-mailaddress-of-the-main-language/ and we will continue to work on the new ticket.

Thank you for your cooperation and patience.

December 6, 2023 at 4:17 pm #15010071

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Our team is actively working on resolving this issue. In the meantime, you can use the following workaround as mentioned here: https://wpml.org/errata/wcml-custom-order-received-endpoint-redirects-to-default-language/

The steps will be as follows:
1. Please take a backup of your site first for safety reasons.
2. Open the wp-content/plugins/woocommerce-multilingual/wpml-woocommerce.php file
3. Around line 128, Change:

\WCML\OrderNotes\Hooks::class,

For:

//\WCML\OrderNotes\Hooks::class, 

Can you please try and let me know the results,

Thank you for your cooperation and patience

December 19, 2023 at 10:44 am #15091475

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

This issue is solved in latest version WCML 5.3.2