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?
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.