- Posts: 141
- Thank you received: 3
characteristics variants (values) translation in filters
6 years 11 months ago #313696
by Greg_C
characteristics variants (values) translation in filters was created by Greg_C
-- 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
-- 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 or Create an account to join the conversation.
6 years 11 months ago #313697
by nicolas
Replied by nicolas on topic characteristics variants (values) translation in filters
Hi,
Add the code:
after the code:
in the file administrator/components/com_hikashop/classes/filter.php and it will allow you to have them translated there too.
Add the code:
Code:
foreach($characteristic_values as $k => $characteristic_value) {
$characteristic_values[$k]->characteristic_value = hikashop_translate($characteristic_value->characteristic_value);
}
Code:
$characteristic_values=$database->loadObjectList();
The following user(s) said Thank You: Greg_C
Please Log in or Create an account to join the conversation.
6 years 11 months ago #313705
by Greg_C
Replied by Greg_C on topic characteristics variants (values) translation in filters
Hi Nicolas, thank you !
it works
I hope you will add this also on your end
Regards,
Greg
it works
I hope you will add this also on your end
Regards,
Greg
Please Log in or Create an account to join the conversation.
6 years 11 months ago #313706
by nicolas
Replied by nicolas on topic characteristics variants (values) translation in filters
Yes, it will be in the next version.
Please Log in or Create an account to join the conversation.
Time to create page: 0.047 seconds