So on this site we are using WPML and Woocommerce Multilangual. Somehow, product attributes are not properly synced with the German language. The filters work on the English language, but as soon as it gets switched to German, the filters will show up, but if I select an attribute to filter on, it will tell me no products are found. The attributes do show up when I edit the product in German, and they are set to be copied from the main language (English). Any clue how to properly sync them? I have cleared the cache, updated all products, but it does somehow not work.
See the following page for an example: hidden link
Found the problem, Woocommerce Multilingual or WPML adds the country code behind the attributes, so -de for German or -nl for Dutch. Can I prevent this from happening or do I now have to go through my 120 different attributes, one by one, 4x for 4 different languages to remove the country codes from the slugs?
Hi There,
Thanks for contacting WPML Support. I will try my best to assist you in this matter.
I understand the issue you're having. I would like to inform you that WordPress doesn't support identical slugs. For that reason, WPML adds the language code with the translated attributes and makes them unique to avoid unwanted issues.
Now, In order to solve the issue, please follow the steps mentioned below.
- 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.
Let me know if that helps or if you need further assistance in this matter. I will be happy to help.
Fixed it by going to WPML > Taxonomy translations > Switching the parent product category from Not Translatable to Translatable > Then switching it back to Not Translatable. That forced the attributes to re-synchronize.
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.