[Resolved] Trying to automatically translate product attributes
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.
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.
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.
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.