Skip Navigation

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

Problem:
The client is unable to automatically translate the attributes of products on their WooCommerce site using WPML. The attributes for one product are not translating at all, despite following the relevant WPML documentation.

Solution:
We recommend trying the following steps to resolve the issue:
1. Create new attributes.
2. Create simple and variable products.
3. Add attributes to these products and create variations for the variable products.
4. Attempt to translate these attributes automatically.

If the products were imported, they might not translate automatically. In this case, manually translate the attributes from WooCommerce -> WCML -> Attributes and then synchronize them by:
- Ensuring the attributes are properly assigned to the fully translated product.
- Navigating to WooCommerce > WooCommerce Multilingual ⇒ Attributes
- Selecting the attribute assigned to the product.
- Scrolling down and clicking on the "Synchronize attributes and update product variations" button.

Repeat these steps for each attribute assigned to the products.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at https://wpml.org/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.

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 0 replies, has 0 voices.

Last updated by willem-janV 1 month ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 16, 2025 at 8:18 am

willem-janV

Background of the issue:
I am trying to automatically translate the attributes of the products on my site hidden link. I am using WPML and following the documentation at https://wpml.org/documentation/related-projects/woocommerce-multilingual/#taxonomies.

Symptoms:
The product attributes for one product are not translated at all.

Questions:
How can I make sure that the product attributes are translated automatically, without user interaction....

January 16, 2025 at 8:35 am
January 16, 2025 at 8:36 am #16600296

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, since you were busy, I've moved the chat to this ticket and 'll follow up accordingly.

Please confirm if you've taken fresh and full backup of your site and database? So I can then enter and check for the issue.

Regards.

January 16, 2025 at 8:37 am #16600299

willem-janV

Have you seen the login information?

January 16, 2025 at 8:38 am #16600318

willem-janV

Backup is in progress....

January 16, 2025 at 8:43 am #16600362

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Yes, I've seen it, but I can only enter after the backup is complete and have the confirmation.

Please let me know when it is done and I'll try my best to check for the issue.

January 16, 2025 at 8:44 am #16600364

willem-janV

Backup has been completed.

January 16, 2025 at 8:50 am #16600371

willem-janV

I have a meeting between 10:00 and 11:00 o'clock (Amsterdam timezone). Then, I will not be available.

January 16, 2025 at 10:09 am #16601119

willem-janV

Any luck so far?

January 16, 2025 at 10:13 am #16601151

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates and confirmation about the backup. I am working on this and 'll get back to you as soon as I find something or have a solution.

January 16, 2025 at 1:19 pm #16602145

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I just wanted to update you before closing my day today, that I'm still looking into this and 'll update you by tomorrow.

January 16, 2025 at 1:33 pm #16602220

willem-janV

Okidokie. Tomorrow, I have limited availability because I am somewhere else. But you can always check. 🙂

January 17, 2025 at 8:17 am #16604670

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I tested in one of my test site and I can translate all attributes automatically. I followed these steps:

- Created new attributes.
- Created simple and variable products.
- Added attributes to the products accordingly, also created variations for the variable product.
- Translated automatically.

In your site, I couldn't try this because this is a live site and we can not take risk of adding such content which might be visible on the frontend and can impact the visitors.

However, I'll recommend if you can try as mentioned above in a time which you think is feasible, in terms of less or no traffic. You can also put the site to maintenance mode temporarily during that time so it doesn't affect the visitors. This way you can see if the issue is also happening with locally created content or not.

Because as per my discussion with my team, as you mentioned that products were imported and this is the reason the attributes 'll not translate automatically. For these attributes, you 'll need to translate manually from WooCommerce -> WCML -> Attributes. And then sync these by the following:

- Make sure that the Attributes are assigned to the product properly and that the product is fully translated
- Now, please go to the "WooCommerce > WooCommerce Multilingual ⇒ Attributes" tab
- Select the Attribute assigned for the product
- Scroll down and click on the "Synchronize attributes and update product variations" button.

Please do the same for each attribute assigned to the products.

In any case, it is highly advised to take a fresh and full backup of site and database.

January 21, 2025 at 9:54 pm #16620643

willem-janV

I have translated the categories manually using Deepl.