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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Europe/Madrid (GMT+01:00)
Tagged: WCML
Related documentation:
This topic contains 4 replies, has 1 voice.
Last updated by mykhailoK-8 1 day, 1 hour ago.
Assisted by: Marcel.
Author | Posts |
---|---|
February 13, 2025 at 1:00 pm #16702148 | |
mykhailoK-8 |
Background of the issue: public function send_order( if ( isset( $response['dataArray'] ) ) { When the $order->save() is done, the language data dissapears. If I comment this row it works. As I understand, WPML somehow interfere when the order is saved by woocommerce. What is the correct way to fix the problem, so wpml language won't be erased. By missing language I mean that wpml_language meta is missing or has default language instead of secondary language. I'm using HPOS so it will be a problem to replace $order->save() with just update_post_meta Symptoms: Questions: |
February 13, 2025 at 1:04 pm #16702292 | |
mykhailoK-8 |
Symptoms: incorrect payment instructions language in email and incorrect language of products in email |
February 18, 2025 at 5:39 pm #16720455 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, Thanks for the update! There is still an internal ticket open from your previous case, and we're currently investigating the issue to identify what might be causing it. Best regards, |
February 20, 2025 at 12:44 pm #16729581 | |
mykhailoK-8 |
Previous ticket was marked as resolved so I've opened a new one |
February 20, 2025 at 1:12 pm #16729663 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, Yes, that’s fine. I was referring to an internal ticket in our bug tracker system, not the forum case itself. There was additional information from your previous case. However, based on the information we have right now, we can only make an educated guess. It’s possible that $order->save() is being hooked or modified in our code due to a race condition—but this is just speculation at this point. To properly debug this, we need a clear way to reproduce the issue. Could you please provide a Duplicator package of your site along with detailed instructions on how to trigger the order to your CRM to reproduce the issue? Specifically, are there any particular steps involved in creating an order that lead to this behavior? Thank you! Best regards, |
February 25, 2025 at 1:04 pm #16745797 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, We’ve debugged the issue, and the order still has a language assigned to it. However, we’re unable to identify where the language is missing. How can we verify if the language is indeed missing? We purchased a product in Russian, and the order table contains the WPML language key, with no data lost. Could it be that this information isn’t making it to your CRM? Looking forward to your insights. Best regards, |
February 25, 2025 at 2:37 pm #16746394 | |
mykhailoK-8 |
I don't know why it doesn't reproduce on any other sites, for example on local or dev version, however it is crucial that this will be live site and this is one of the problem which stops moving it for production. I'll send you a video with the steps hidden link. After complete an order, and go to admin area the list of products is in Ukrainian, however wpml_language is set to ru. Same problem with email, the list of products and payment instruction is in ukrainian. Could you validate the error on azi.ua, using ftp or ssh access? |