Since I have updated plugins (included woocommerce) all orders made on the website with the following payment systems (paypal and stripe) have their VARIATION ID changed to the buyers default language. This is causing problems as I can't sync in the orders with my order manager system as it just takes the main language id variation (english).
Thank you for contacting WPML support, I'd be happy to help you with this issue.
It is an expected behavior when the product in the order will display the translation in the language that is set in the User Profile > Language.
If you want to get a variation ID in a specific language, please use the filter hook wpml_object_id, please read more on the documentation https://wpml.org/wpml-hook/wpml_object_id/
You might need to add some custom code to your plugin to sync the variation ID in the English language with the order manager system. However, we do not normally offer support for custom code, I would recommend you contact one of our certified partners that will be more than happy to help you with this. In this link you will find a list of our certified partners: https://wpml.org/contractors/
Could you please let me know where I need to put that filtering code to make all order's ID VARIANTS in english (default language of the website) instead of the customer's user language.
I have noticed that the PRODUCT ID is always in english no matter the customer's user language but the ID VARIANT (size) is in the customer's user language. It doesn't make sense to mix both languages, either everything is in the website's default language (english) or in the customer's user language (french, spanish or english).
This seems to be a WPML bug. We really need to have everything in the website's default language.
>> I have noticed that the PRODUCT ID is always in English no matter the customer's user language but the ID VARIANT (size) is in the customer's user language.
I do not see that issue on my demo site. The product ID in the order will display the translation in the current language that the user selected in the User Profile. Please check this screenshot hidden link
You can always get a variation ID in a specific language, by using the filter hook wpml_object_id. Please read more on the documentation https://wpml.org/wpml-hook/wpml_object_id/
If you don't know how to do that, I would recommend you contact one of our certified partners that will be more than happy to help you with this. In this link you will find a list of our certified partners: https://wpml.org/contractors/
Look forward to your reply.
Thanks
The topic ‘[Closed] variation ID changes to secondary language when orders changes to processing’ is closed to new replies.