custom filter items

  • Posts: 197
  • Thank you received: 13
2 years 3 months ago #344104

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2
-- PHP version -- : 7.4

Hi
I have a custom field with 10 values.
I want to have a filter of this custom field which only 5 items of that 10 be displayed in the filter.
Values are are not number, they are characters

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 3 months ago #344112

Hi,

Why do you want to have that ?
Because the products using that custom field don't use the other 5 values ?
In that case, you can activate the "dynamic display" setting of the filter.
Otherwise, that would require a view override of product / filter.php via Display>Views with some custom coding to dynamically change the values.

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

  • Posts: 197
  • Thank you received: 13
2 years 3 months ago #344116

Thank you
I already know about that option.

But the problem is when I active the dynamic display option, whenever I choose one option, the other 4 options are gone until I remove the selected filter.

What I need is that I want 5 out of that 10 filters always remain there whether if they are checked or not

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 3 months ago #344117

Hi,

In that case, the only other option left is to create a view override of product / filter.php via Display>Views with some custom coding to dynamically change the values.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum