[Skip to main content](#vessel-content)

#   characteristics variants (values) translation in filters

##

- **[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")**
- [![Greg&#95;C's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57819-greg-c "View Greg&#95;C's Profile") Topic Author
- [ Offline](/forum/user/57819-greg-c)

Less More

- Posts: 141
- Thank you received: 3
-
-

6 years 11 months ago [\#313696](#313696) by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")  *[characteristics variants (values) translation in filters](/forum/10-translation/898787-characteristics-variants-values-translation-in-filters#313696 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.13 -- PHP version -- : 7.2.14  Hi, I created custom filter (single dropdown type) applied on characteristics – unfortunately translation of characteristics variants (values) doesn’t work in filter  translation of characteristics variants (values) works fine on product page, cart/checkout, order listing and e-mail notifications but doesn’t work for filters  I would like to ask for help in solving this problem  Regards, Greg")* was created by *[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.2.14

Hi, I created custom filter (single dropdown type) applied on characteristics – unfortunately translation of characteristics variants (values) doesn’t work in filter

translation of characteristics variants (values) works fine on product page, cart/checkout, order listing and e-mail notifications but doesn’t work for filters

I would like to ask for help in solving this problem

Regards,
Greg

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODc4Ny1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uLWluLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

6 years 11 months ago [\#313697](#313697) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[characteristics variants (values) translation in filters](/forum/10-translation/898787-characteristics-variants-values-translation-in-filters#313697 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.13 -- PHP version -- : 7.2.14  Hi, I created custom filter (single dropdown type) applied on characteristics – unfortunately translation of characteristics variants (values) doesn’t work in filter  translation of characteristics variants (values) works fine on product page, cart/checkout, order listing and e-mail notifications but doesn’t work for filters  I would like to ask for help in solving this problem  Regards, Greg")*

Hi,

Add the code: Code:

foreach($characteristic_values as $k =&gt; $characteristic_value) { $characteristic_values[$k]-&gt;characteristic_value = hikashop_translate($characteristic_value-&gt;characteristic_value); }

after the code: Code:

$characteristic_values=$database-&gt;loadObjectList();

in the file administrator/components/com_hikashop/classes/filter.php and it will allow you to have them translated there too.

The following user(s) said Thank You: [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODc4Ny1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uLWluLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")**
- [![Greg&#95;C's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57819-greg-c "View Greg&#95;C's Profile") Topic Author
- [ Offline](/forum/user/57819-greg-c)

Less More

- Posts: 141
- Thank you received: 3
-
-

6 years 11 months ago [\#313705](#313705) by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")  Replied by *[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")* on topic *[characteristics variants (values) translation in filters](/forum/10-translation/898787-characteristics-variants-values-translation-in-filters#313705 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.13 -- PHP version -- : 7.2.14  Hi, I created custom filter (single dropdown type) applied on characteristics – unfortunately translation of characteristics variants (values) doesn’t work in filter  translation of characteristics variants (values) works fine on product page, cart/checkout, order listing and e-mail notifications but doesn’t work for filters  I would like to ask for help in solving this problem  Regards, Greg")*

Hi Nicolas, thank you !
it works
I hope you will add this also on your end ![:)](/media/kunena/emoticons/3.png ":)")

Regards,
Greg

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODc4Ny1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uLWluLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

6 years 11 months ago [\#313706](#313706) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[characteristics variants (values) translation in filters](/forum/10-translation/898787-characteristics-variants-values-translation-in-filters#313706 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.13 -- PHP version -- : 7.2.14  Hi, I created custom filter (single dropdown type) applied on characteristics – unfortunately translation of characteristics variants (values) doesn’t work in filter  translation of characteristics variants (values) works fine on product page, cart/checkout, order listing and e-mail notifications but doesn’t work for filters  I would like to ask for help in solving this problem  Regards, Greg")*

Yes, it will be in the next version.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODc4Ny1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uLWluLWZpbHRlcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
