Thank you for contacting WPML support, I’d be happy to help you on this issue.
The product ID and other data like title, image … in the order will display as the translation or default language based on the language in the user profile. Let me know if it is your case.
If not, please test this issue again with a minimal environment and see if it helps:
- Deactivate all plugins except WPML plugins and WooCommerce
- Switch to a standard theme of WordPress (2022)
❌ IMPORTANT: Please backup your database and website before doing above steps ❌
You can use this plugin to do this: https://wordpress.org/plugins/duplicator/
It’s done in just a few minutes.
I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.
"The product ID and other data like title, image … in the order will display as the translation or default language based on the language in the user profile. Let me know if it is your case."
Currently, the order is created in language "2" and default language is "1". But when i put order to processing, it changes the products in order "2" to "1" in json. I think this is a bug.
Can you please share your site debug info? I need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.
I’ve tried to check the WooCommerce Rest API on my demo site but do not see that issue. For example: hidden link
will display only the product ID in the default language. Please see these screenshots hidden link hidden link
And please let me know how you use the Rest API and get the return value. Did you follow the minimum environment above?