Hi there, I am using WPML and WooCommerce multilingual.
My default language is English and I have translated products in French and German that are connected to the English.
For English all the products are correctly categorised. For French and German they show as uncategorised. I would like the French and German categories to be synched to the English.
When I view a product category in English and then switch to French for example it shows no products.
I am presuming I may need to go to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Categories and press the button that says "synchronize product categories assignment in content". Will that solve the problem or are there additional steps to take? I tried that on a test environment but the French and German products still showed as uncategorised.
I understand the issue you're having. The core of the problem appears to be related to the configuration settings in your multilingual setup, particularly how product categories are handled.
You have set the translation preference for taxonomies (like product categories) to use a fallback option. This means that if a category is not translated, it should display the category from the default language.
But, your main products have already been translated into other languages. However, because these products are translated, each translated product should be associated with a corresponding category in the same language. The fallback setting for taxonomies should not apply when the product is translated.
Since the categories themselves haven't been translated into other languages, your products in those languages are defaulting to 'uncategorized.' This misconfiguration leads to a logical inconsistency in how products and their categories are displayed across different languages.
To resolve this, please align your settings for both product's post type and their corresponding taxonomies. Ensure that if products are translated, their associated taxonomies (like categories) should also need to be translated. This alignment will help in correctly categorizing products in all languages.
The categories should be translated at the time of translating the product. But, since they haven't been translated yet, please translate them by going to "WooCommerce > WooCommerce Multilingual > Categories" and once done, click on the "Synchronize Categories" button to sync the categories across the other language product.
I hope you can understand. Please feel free to let me know if you need further assistance or clarification in this matter. I will be happy to help.
I need to do the same thing for the product attributes. The original language for them all should be English. But on product import it has caused a problem and set the default language to French and German in some cases. Do you know how I can change all attribute terms so their default language is English? Screenshot attached so you can see.
If you want the English attributes to become the default, you will need to remove the French and German attributes that are currently set as defaults. Here’s how to proceed:
- First, take a complete backup of the site and database.
- Navigate to "Product > Attributes" and click on the name of the attribute.
- Switch to the French or German language and find the term set as the default.
- Delete this term.
- Then, go to "WooCommerce > WooCommerce Multilingual > Attributes" and select the attribute.
- The English attribute term should now be set as default and appear in the list. Translate this term into French and German.
- Finally, click on the "Synchronize Attribute" button at the bottom of the page.
Let me know if the steps helps or if you need further assistance in this matter. I will be happy to help.
Thanks Prosenjit. I have managed to get all the English attributes to default. My only question is I need to synchronize the product attributes now. But next to the synchronize button that says "Synchronize attributes and update product variations" it says "Currently, there are 938 variations that need to be created."
There should be no product variations that need to be created as they are all simple products. I just need to sync the attibutes. I just wanted to check this with you before I press it. I have backed up the database just in case.
Hi There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.
Glad to hear that you've managed to make the English attributes as default!
The message indicating that variations need to be created will always appear if synchronization is available. Since your goal is simply to synchronize the attributes, and you've secured a backup, it should be safe to proceed with the synchronization.
Feel free to let me know if you need further assistance in this matter. I will be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] Synchronizing product categories’ is closed to new replies.