Tell us what you are trying to do?
I am trying to change language on the orders page. and i would like to see from this order page in what language that order was placed.
Is there any documentation that you are following?
no
Thank you for contacting us. I am happy to help you.
May I ask you to give me more information about your questions because I didn't understand well what you are writing and I don't want to give you the wrong information?
There is no language switcher on the order page because you cannot translate this post type.
If you need to see from which language the order is coming, there is a custom field on the order page where you can see from which language the order was placed. But you should touch anything because it will break the correlations between languages.
I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂
As I told you the language switcher is needed for the content that can be translated. So it is logical that the orders that placed in a specific language.
If it is important for you as shop owner what language the customer choose when he added the order, you can add some custom code in order to check that information.
For example, you can use this
get_post_meta($order_id, 'wpml_language', true);
And add the information to a separate column in the order list page.
Also, you can use REST API to get that information :
Last but not least, as I told you in my previous message that information is visible if you edit the order, at the end, there is a custom field that says the language in that the customer has placed the order.
I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂
Regards,
Andreas
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.