characteristics variants (values) translation in filters

  • Posts: 110
  • Thank you received: 3
  • Hikashop Business
1 week 4 days ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 67676
  • Thank you received: 10046
  • MODERATOR
1 week 4 days ago #313697

Hi,

Add the code:

foreach($characteristic_values as $k => $characteristic_value) {
			$characteristic_values[$k]->characteristic_value = hikashop_translate($characteristic_value->characteristic_value);
		}
after the code:
$characteristic_values=$database->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

Please Log in or Create an account to join the conversation.

  • Posts: 110
  • Thank you received: 3
  • Hikashop Business
1 week 4 days ago #313705

Hi Nicolas, thank you !
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.

  • Posts: 67676
  • Thank you received: 10046
  • MODERATOR
1 week 4 days ago #313706

Yes, it will be in the next version.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum