Show/hide a filter based on product values

  • Posts: 69
  • Thank you received: 1
10 years 3 weeks ago #177200

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.6

Hi,

I have a huge list of filters... each filter uses a custom field that is defined as a radio button. When I display a list of products for a category, I would like to hide the filters that do not pertain to the list of products being displayed... so the filter would be hidden/displayed dynamically based on the products..

For example, if I have a filter called SIZE and it is based on a custom field that could have various values (S, M, L) but all my products for a give category are only available in SIZE=L, then there is no reason for me to display the SIZE filter for the product list. How best can I show/hide the filter based on the product list being displayed?

I need the show/hide of the filter to be dynamic, so for example if I have two filters, say SIZE and COLOR, and all my SIZE=L products are only available in COLOR=RED, then if I select SIZE=L, I would want all my large products to be displayed, and I would like my COLOR filter to go away.

If I then change the size filter and select both SIZE=L and SIZE=M to show large and medium products, and my medium products are available in different colors, then I would like the COLOR filter to appear... due to the fact that the products being displayed have at least two different values in the COLOR value.

How can I create a "dynamic" filter as described above? Any help is greatly appreciated. I am using the filter module.

Thanks,

Dennis


______________
Dennis Kmetz
Last edit: 10 years 3 weeks ago by dkmetz@taylorbruce.com. Reason: grammer

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
10 years 3 weeks ago #177210

Hi,

When you edit your filters via the menu Display>Filters, you will find a "dynamic display" option that you can activate so that the filters display only with the possible values based on the products currently being displayed.
It won't completely hide the filter but if there is only 2 values possible for the current products out of the 10 of the characteristic, it will only display these 2 choices.

The following user(s) said Thank You: dkmetz@taylorbruce.com

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

Time to create page: 0.056 seconds
Powered by Kunena Forum