I have Danish as my default language and English as a translation. In WooCommerce, how can I translate the Product Attributes slug? I have created an attribute (under Products =>Attributes) named "Farve" in Danish ("Color" in English). I have then created product variations based on the terms of that attribute. I can translate the name under WPML => Taxonomy Translation (See attached image). How do I change the slug of this? When I have added a variant to the cart (say green) and visit the cart and then click the product in the cart (so I get back to the product page with the variant selected) it will have the query string "attribute_pa_farve" in the URL (see image) with the translated term. I.e. in Danish, it will say "?attribute_pa_farve=groen" and in English, it will say "?attribute_pa_farve=green". How do I translate the slug so it says "?attribute_pa_color=green" in English instead of "?attribute_pa_farve=green"?
Hello Søren,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.
I understand what you're looking for. Unfortunately, the part after "attribute_pa_" cannot be translated into other languages. Multiple complexities are involved with it and without modifying the core WooCommerce code, it will not be possible to translate that part for now. I hope you can understand.
If the Archive is Enabled for the Attribute, you can change the Archive URL for that attribute by going to "WooCommerce > WooCommerce Multilingual & Multicurrency → Store URLs".
If there is anything else if you need help, please let me know.
Best Regards,
Prosenjit
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.