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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 6 replies, has 2 voices.

Last updated by Prosenjit Barman 6 months, 3 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
May 7, 2024 at 1:35 pm #15602433

clareQ

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.

Under WPML -> settings -> Taxonomies Translation I have turned the product category and attributes to 'use translation if available or fallback to default language'. As per the documentation here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/displaying-untranslated-products-in-secondary-languages/#displaying-product-categories-tags-and-attributes-in-the-default-language

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.

Many thanks

May 8, 2024 at 10:30 am #15605384

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thanks for contacting WPML Support.

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.

Best regards,
Prosenjit

May 9, 2024 at 1:18 pm #15610788

clareQ

Thanks Prosenjit that seems to have worked.

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.

Many thanks

scrnli_09_05_2024_14-17-56.png
May 10, 2024 at 5:53 am #15612589

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thank you for the update.

Glad to hear that the suggestion worked!

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.

Best regards.
Prosenjit

May 10, 2024 at 11:39 am #15614399

clareQ

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.

May 10, 2024 at 11:40 am #15614400

clareQ

Screenshot is attached

WooCommerce-Multilingual-Multicurrency-‹-Partner-Portal-—-WordPress.png
May 13, 2024 at 4:25 am #15618355

Prosenjit Barman
Supporter

Languages: English (English )

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

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.