Skip Navigation

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.

Our next available supporter will start replying to tickets in about 1.57 hours from now. Thank you for your understanding.

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: Asia/Jerusalem (GMT+03:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Itamar 1 year ago.

Assisted by: Itamar.

Author Posts
April 20, 2023 at 5:46 am #13508781

Anze

rest api for orders is not working ok when ordered on translation.

The problerm is that when we get orders made on the default language we get in the line items the attribute name in the product name. While if we get an order that was made on a translated website, we don't get the attributename in the product name

April 23, 2023 at 6:04 pm #13523519

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'll continue to help you with this issue.

First, I must mention that according to our documentation you must specify the language in the RST API call that you are making to get the correct order. Please see our REST API guide here.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/#view-orders

What you sent us is the response to the REST API call. To find out with our second-tier supporters if your REST API calls can work the way you write them, please attach an example for such a call.

Also, please ensure that all our plugins (as well as WordPress and WooCommerce) are updated to their latest versions on your site.

https://wpml.org/faq/install-wpml/#automated-updates

Also, could you please share your site's Debug information with me?

You can read about it here.

http://wpml.org/faq/provide-debug-information-faster-support/

Regards,
Itamar.

The topic ‘[Closed] rest api for orders is not working ok when ordered on translation.’ is closed to new replies.