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

#   characteristics variants (values) translation

##

- **[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
-
-

7 years 1 month ago [\#310954](#310954) by [Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")  *[characteristics variants (values) translation](/forum/10-translation/898292-characteristics-variants-values-translation#310954 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have question regarding products characteristics variants (values) translation. I have checked that It is possible to do translation of characteristics variants (values) presented on product page in list of values as dropdown list (product / show&#95;block&#95;characteristic.php) – translation is done using System-Configuration-Languages. Unfortunately this translation doesn’t work for characteristics variants (values) presented in hikashop&#95;product&#95;variant&#95;subname on product page (product / show&#95;tabular.php) and presented in the cart (checkout / show&#95;block&#95;cart.php).  How can I make characteristics variants (values) translation working not only for product / show&#95;block&#95;characteristic.php but also for product / show&#95;tabular.php and checkout / show&#95;block&#95;cart.php ?  Regards, Greg")* was created by *[Greg\_C](/forum/user/57819-greg-c "View Greg&#95;C's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.2.14

Hello, I have question regarding products characteristics variants (values) translation. I have checked that It is possible to do translation of characteristics variants (values) presented on product page in list of values as dropdown list (product / show_block_characteristic.php) – translation is done using System-Configuration-Languages. Unfortunately this translation doesn’t work for characteristics variants (values) presented in hikashop_product_variant_subname on product page (product / show_tabular.php) and presented in the cart (checkout / show_block_cart.php).

How can I make characteristics variants (values) translation working not only for product / show_block_characteristic.php but also for product / show_tabular.php and checkout / show_block_cart.php ?

Regards,
Greg

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODI5Mi1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

7 years 1 month ago [\#310966](#310966) 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](/forum/10-translation/898292-characteristics-variants-values-translation#310966 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have question regarding products characteristics variants (values) translation. I have checked that It is possible to do translation of characteristics variants (values) presented on product page in list of values as dropdown list (product / show&#95;block&#95;characteristic.php) – translation is done using System-Configuration-Languages. Unfortunately this translation doesn’t work for characteristics variants (values) presented in hikashop&#95;product&#95;variant&#95;subname on product page (product / show&#95;tabular.php) and presented in the cart (checkout / show&#95;block&#95;cart.php).  How can I make characteristics variants (values) translation working not only for product / show&#95;block&#95;characteristic.php but also for product / show&#95;tabular.php and checkout / show&#95;block&#95;cart.php ?  Regards, Greg")*

Hi,

That's a good point.
Add the code: Code:

if(strpos($val-&gt;characteristic_value, '&lt;') === false) $val-&gt;characteristic_value = hikashop_translate($val-&gt;characteristic_value);

before the code: Code:

$variant-&gt;characteristics_text .= $separator . $val-&gt;characteristic_value;

in the file administrator/components/com_hikashop/classes/product.php and let us know how it goes so that we can add the change on our end 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=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODI5Mi1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uP3RtcGw9bWFya2Rvd24=) 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
-
-

7 years 1 month ago [\#310998](#310998) 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](/forum/10-translation/898292-characteristics-variants-values-translation#310998 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.14  Hello, I have question regarding products characteristics variants (values) translation. I have checked that It is possible to do translation of characteristics variants (values) presented on product page in list of values as dropdown list (product / show&#95;block&#95;characteristic.php) – translation is done using System-Configuration-Languages. Unfortunately this translation doesn’t work for characteristics variants (values) presented in hikashop&#95;product&#95;variant&#95;subname on product page (product / show&#95;tabular.php) and presented in the cart (checkout / show&#95;block&#95;cart.php).  How can I make characteristics variants (values) translation working not only for product / show&#95;block&#95;characteristic.php but also for product / show&#95;tabular.php and checkout / show&#95;block&#95;cart.php ?  Regards, Greg")*

Hi Nicolas, it works - thank you very much !

Regards,
Greg

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5ODI5Mi1jaGFyYWN0ZXJpc3RpY3MtdmFyaWFudHMtdmFsdWVzLXRyYW5zbGF0aW9uP3RtcGw9bWFya2Rvd24=) 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.051 seconds

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

[](#top)
