characteristics variants (values) translation in filters

  • Posts: 141
  • Thank you received: 3
4 years 4 months 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: 81509
  • Thank you received: 13064
  • MODERATOR
4 years 4 months 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: 141
  • Thank you received: 3
4 years 4 months 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: 81509
  • Thank you received: 13064
  • MODERATOR
4 years 4 months 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.060 seconds
Powered by Kunena Forum