[Skip to main content](#vessel-content)

#   Show/hide a filter based on product values

##

- **[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")**
- [![dkmetz@taylorbruce.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile") Topic Author
- [ Offline](/forum/user/11254-dkmetz-taylorbruce-com)

Less More

- Posts: 69
- Thank you received: 1
-
-
-
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#177200](#177200) by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")  *[Show/hide a filter based on product values](/forum/45-filters-search/872633-show-hide-a-filter-based-on-product-values#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 &quot;dynamic&quot; filter as described above? Any help is greatly appreciated. I am using the filter module.  Thanks,  Dennis")* was created by *[dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")*

-- 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: 12 years 3 weeks ago by [dkmetz@taylorbruce.com](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile"). Reason: grammer

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MjYzMy1zaG93LWhpZGUtYS1maWx0ZXItYmFzZWQtb24tcHJvZHVjdC12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

12 years 3 weeks ago [\#177210](#177210) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show/hide a filter based on product values](/forum/45-filters-search/872633-show-hide-a-filter-based-on-product-values#177210 "-- 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 &quot;dynamic&quot; filter as described above? Any help is greatly appreciated. I am using the filter module.  Thanks,  Dennis")*

Hi,

When you edit your filters via the menu Display&gt;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](/forum/user/11254-dkmetz-taylorbruce-com "View dkmetz@taylorbruce.com's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg3MjYzMy1zaG93LWhpZGUtYS1maWx0ZXItYmFzZWQtb24tcHJvZHVjdC12YWx1ZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
