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.

Tagged: 

This topic contains 1 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year ago.

Author Posts
June 3, 2024 at 12:30 pm #15697866

silvanB

Background of the issue:
I am trying to batch update attribute names and slugs for different languages using the WooCommerce Rest API with WPML.

Symptoms:
Attributes received the same names and slugs for all languages or were partially updated: Some attributes stayed in German, some in French.

Questions:
Why are the attribute names and slugs not updating correctly for different languages?
How can I ensure that the batch update translates attribute names and slugs properly?

June 4, 2024 at 5:50 am #15699721

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well.

Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.

I reviewed the entire conversation you had with Bruno and understand the issue. We are aware of some problems related to batch updates and attribute translation using the WC REST API. Our development team is working on these issues, and we hope to resolve them in an upcoming version of the WooCommerce Multilingual plugin.

Since the attributes are not showing correctly when you fetch via REST API, could you please try an attribute synchronization from WooCommerce Multilingual and then check again? Here are the steps:

1. Go to **WooCommerce > WooCommerce Multilingual > Attributes** tab.
2. Select the attribute that you created using the REST API and ensure that the attribute terms are translated.
3. At the end of the page, you'll see a button to **Synchronize Attributes**. Click on that and wait until the process is finished.
4. Once done, try to fetch again and check if you're still experiencing the issue.

Let us know how it goes. We will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

The topic ‘[Closed] WooCommerce Rest API batch update of attributes doesn't work with WPML’ is closed to new replies.