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

#   Filter Items Count

##

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 5 days ago [\#345766](#345766) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#345766 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")* was created by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")*

-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.3
-- PHP version -- : 8.1

I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio
just like many filter modules have

is that possible in hikashop ?

I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.

If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNTE5Mi1maWx0ZXItaXRlbXMtY291bnQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

4 years 5 days ago [\#345772](#345772) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#345772 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")*

Hi,

It's not impossible but really hard to do. That's why we never got around it.
The problem is that filters have to take into account many things. Add the count on each choice will require running a MySQL query for each choice of each filter. This will drastically slow down the processing on websites with lots of filters/products.

Also, we can't do that as an override. If we work on it for you, we have to develop it directly into HikaShop as it requires modifying the core files handling the filters in HikaShop. That also means we can't cut corners. So it would cost 600€

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 5 days ago [\#345782](#345782) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#345782 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")*

in fact, the count number is not important for me

the problem is I need to hide the filter items which there is no results for them. and I do not want to use dynamic filtering feature as when we click on one item, other items will go away when using this feature.

I was thinking if I could count the result number, I can put an "if($count == 0)" function to add "hidden" class to that filter items which has no results

I dont know if I colud completly explain what is my exact need.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNTE5Mi1maWx0ZXItaXRlbXMtY291bnQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

4 years 4 days ago [\#345793](#345793) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#345793 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")*

Hi,

I see what you mean. Still, to be able to do that, it requires counting the products for each choice.

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

4 years 4 days ago [\#345802](#345802) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#345802 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")*

what is your suggestion Nicolas ?
this is the first time I came up with a problem and there is not any solutions from you
My project is in danger .. I have to hide that filter items

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNTE5Mi1maWx0ZXItaXRlbXMtY291bnQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86284
- Thank you received: 14263
-
-

4 years 4 days ago [\#345803](#345803) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#345803 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")*

Hi,

There are two solutions:
1. What I told you in [ www.hikashop.com/forum/install-update/90...ms-count.html#345772](https://www.hikashop.com/forum/install-update/905192-filter-items-count.html#345772)
We can develop that for you, but it's not cheap.

2. Instead of using HikaShop filters, you can use JA megafilter:
[ www.joomlart.com/joomla/extensions/ja-megafilter-for-joomla](https://www.joomlart.com/joomla/extensions/ja-megafilter-for-joomla)
It's compatible with HikaShop and can display the count of each choice of each filter. So you should be able to easily hide the empty choices.

The following user(s) said Thank You: [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")

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

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

Less More

- Posts: 240
- Thank you received: 13
-
-

3 years 11 months ago [\#346292](#346292) by [khashiz](/forum/user/61259-khashiz "View khashiz's Profile")  Replied by *[khashiz](/forum/user/61259-khashiz "View khashiz's Profile")* on topic *[Filter Items Count](/forum/25-install-update/905192-filter-items-count#346292 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.3 -- PHP version -- : 8.1  I need to enter the number of results for each filter item in hikashop filter module when filter type is checkbox or radio just like many filter modules have  is that possible in hikashop ?  I think it must be possible with some coding because JA Mega Filter component which works in HikaShop too has this feature.  If the coding is simple please tell me how can I do that and if it is complicated please tell how much does it cost for custom development")*

I tried solution 2
bu it looks like JA mega filter doesnt work with either hikashop 4.6.2 or joomla 4.2.4 ![:(](/media/kunena/emoticons/5.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzkwNTE5Mi1maWx0ZXItaXRlbXMtY291bnQ/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.220 seconds

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

[](#top)
