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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 3 months ago.

Assisted by: Prosenjit Barman.

Author Posts
August 30, 2023 at 8:07 am #14311093

jeroenB-13

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

Kind regards.

August 30, 2023 at 1:05 pm #14313993

jeroenB-13

So the filters don't work on any of the languages. On our staging environment it seems to be working just fine.

August 30, 2023 at 4:36 pm #14315187

jeroenB-13

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?

August 31, 2023 at 9:48 am #14318905

Prosenjit Barman
Supporter

Languages: English (English )

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

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.

Best regards,
Prosenjit

September 6, 2023 at 8:27 am #14349343

jeroenB-13

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.