Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to import all orders in all languages from their website into the Sendcloud platform, but only orders in Dutch (the default language) are being imported.
Solution:
We recommend checking the Sendcloud documentation for information on importing orders to their platform, as the issue seems to be related to Sendcloud rather than WPML. However, to retrieve orders in secondary languages using the WordPress REST API, you can make a request like the following:

$orders = $woocommerce->get('orders', array( 'per_page' => 25, 'lang' => 'fr' ));

For more details, please refer to our documentation on Using WordPress REST API with WooCommerce Multilingual.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you continue to experience issues, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Andrey 7 months, 2 weeks ago.

Assisted by: Andrey.

Author Posts
April 9, 2024 at 11:06 am #15498632

edwinO-3

I am trying to: Import all orders in all languages available on our website into Sendcloud platform

Link to a page where the issue can be seen: sendcloud.nl

I expected to see: all our orders

Instead, I got: only orders in Dutch (default language) are imported

April 9, 2024 at 2:05 pm #15499689

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

I appreciate your interest in WPML. However, we have not tested the compatibility of the Soundcloud platform with WPML. We suggest you check their documentation for more information on importing those orders to their platform.

Please note that the issue you are encountering seems to be unrelated to WPML and related to the Soundcloud platform. We hope this information helps. Please let us know if you have any further concerns.

April 9, 2024 at 2:12 pm #15499742

edwinO-3

Hi Andrey,

Sendcloud uses the REST API to retrieve all orders. Somehow orders in a different language are not available in the REST API, it seems to me this is a WPML bug.

We are NOT talking about soundcloud but SENDcloud.

Kind regards,
Edwin

April 9, 2024 at 7:05 pm #15501151

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for the update, Edwin. I am sorry to mention Soundcloud earlier. It was automatically corrected by mistake.

As far as I know, the orders in secondary languages are available for retrieving with the WordPress REST API, as an example, you need to make the following request:

$orders = $woocommerce->get('orders', array( 'per_page' => 25, 'lang' => 'fr' ) );

Here's more information:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/#view-orders