Home›Support›English Support›[Resolved] WooCommerce Thank you page redirecting to the default language after completing the order in a secondary language
[Resolved] WooCommerce Thank you page redirecting to the default language after completing the order in a secondary language
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.
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.
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.
New threads created by Noman and linked to this one are listed below:
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.
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:
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.