Background of the issue:
I have translated the product category slugs on my WordPress site using WPML. I am trying to ensure that the links in the shop reflect these translations.
Symptoms:
The German language links on the website still include 'product-category' instead of the translated 'produkt-kategorie'.
Questions:
Why are the translated product category slugs not appearing in the URLs?
How can I fix the links in the shop to reflect the translated slugs?
Thank you for contacting WPML Support. Could you please try to follow the below steps and see if this resolves the issue:
1. Go to the WPML >> Settings > Slug translations section.
2. Make sure to enable the “Translate base slugs of custom post types and taxonomies (via WPML -> Taxonomy translation).” option and press the Save button.
3. Then, please reload the page and click on the “Set different slugs in different languages for Product categories” link under the Taxonomies translation section.
4. Save the settings without making any changes
I deleted the product-categories string from string translation and followed your instructions. Afterwards, I translated the product-category slug again via "WooCommerce Multilingual & Multicurrency" -> "Store URLs" - without success. The error appeared again.
Finally I tried to translate the slug via WPML settings "Set different slugs in different languages for Product categories" and this worked. So there is definitely a bug when you use the way via "WooCommerce Multilingual & Multicurrency" to translate the slug.
Thank you for the update and for testing both methods. You’re right, currently, there’s a known issue when translating the product-category slug through WooCommerce >> WooCommerce Multilingual & Multicurrency > Store URLs. The workaround is exactly what you did using WPML >> Settings > Set different slugs in different languages for Product categories.
Our developers are already aware of this bug, and we’ll update the errata page once a permanent fix is released.