I am trying to: Create an order in non-primary language of the store (let's say German with the main language being polish). Everything works until the Thank you page - suddenly the order is in polish even when everything went smooth via the german domain. Happens on all payment gateways except for standard Woocommerce Bank Transfer (I use PayPal & Mollie). It's a very strange case because I have german meta added to the products (via a Product Add-on plugin) and the meta stays german - everything else is back to polish - the order is created via polish domain. This is a big store - we just went through BLACK NOVEMBER with thousands of orders - everything was fine. Suddenly - today at 00:30 - we got the first "mixed" order - have no idea why.
I'm sending an update to the ticket - I don't know exactly what is happening but when making orders from milkies.de (my german domain, secondary language) all the gateways get return URL to milkies.pl (my polish domain, main language). The entire checkout process is in german - but for example on the PayPal gateway I can see that the return URL is in polish - and even if I make the payment - the completion return URL is also in polish.
thank you for reaching out to us. To better understand your issue, could you please share a screenshot of the Thank You Page shown in the wrong language?
Also, I found a similar issue. Could you please try and follow these steps and share the results with me?
1- Go to WPML-> Theme and plugins localization, select yWooCommerce, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for the needed strings
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on the "« Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end
Lucas - just to clarify. This is not an issue of translations not being displayed. If the order is properly processed the translations display just fine. This is something that broke randomly without any development work being done on the website. I have checked the logs and it broke on the morning of 28th of November - just a few days ago. I just went through thousands of orders on BLACK WEEKEND without any issues.
The issue is extremely strange - I'm quite savvy with WPML and I have not figured even a way to nudge this forward.
Here is how it looks from my side:
1. I have 3 languages:
- PL on milkies.pl (primary)
- DE on milkies.de (secondary)
- EN on milkies.eu (secondary)
2. When I make an order via milkies.de the order had the following characteristics:
- The admin order notification e-mail had MILKIES.DE in title - I could clearly see that the order was made via milkies.de domain
- All of the customer data was in german (for example the COUNTRY that is automatically taken from the WooCommerce dropdown - it's not manually inserted by the client)
- In my notification e-mail the cart items were in german
- And the most important - payment gateways like PayPal - from the customer side - had return urls directing back to milkies.de (not milkies.pl)
- The e-mail that the customer received was sent via milkies.de and everything was in german
- And the most terrible thing - all customers that buy from milkies.de and pay via PayPal / Mollie (any gateway that redirects them outside of my store) are redirected back to milkies.pl after the payment is successful - making them super confused. I can see for example in Mollie (please look at screenshot) that the redirect URLs that are passed are wrong.
Here are the strange things after some of my digging:
- The "wpml_language" parameter in postmeta for the orders is set correctly - if I order through milkies.de the parameter in postmeta for that order is "de"
- Not everything is switched back to polish - it looks like part of the order processing is suddenly done via milkies.pl instead of milkies.de domain and the polish information is being presented instead of the german one
- If the order is done via the standard Offline Bank Transfer gateway (where no redirection outside of my store happens) - everything is correct - the admin notification is correct - everything is as it should be.
So the way I was able to diagnose this issue at the moment - WPML fails somewhere along the payment gateways and that screws up the order processing - some of the processing is done via milkies.pl and that screws up everything else.
Lucas - just a little update - from what I'm seeing - this issue is strictly corelated with the Webhook URL / Redirect URL that are sent to the payment gateways being generated always via the main language domain (milkies.pl) - even if the order is done via secondary language.
After this happens the gateway sends the confirmation of the payment to the URL via milkies.pl domain (instead of milkies.de or milkies.eu).
Thank you for all the information! I see that the Webhook URL changed recently, that's curious. I still have a few questions, so I can better understand what's going on:
Can you confirm that any of the installed plugins were updated recently before you noticed this behavior?
Does this issue only occur for Bank Transfer payments?
Can you also share your debug log file with us? Please send me a link so I can download it.
Also, I'd like access to a staging copy of your website, if you would kindly provide me with one. I aim to test what is going on and to see if I can find any conflicting plugins or issues.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
Please make a backup of site files and database before providing us access.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Thank you.
The topic ‘[Closed] WPML Woocommerce Multilingual Orders Created in Wrong Language’ is closed to new replies.