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

#   Filter module Hide if empty, is this working?

##

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

Less More

- Posts: 285
- Thank you received: 42
-
-

5 years 8 months ago [\#330475](#330475) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[Filter module Hide if empty, is this working?](/forum/45-filters-search/902114-filter-module-hide-if-empty-is-this-working#330475 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3.27  Hi  Before I opened this topic, I searched the forum, found some discussions, but I'm not sure they were related to my question. When we use the module &quot;mod&#95;hikashop&#95;filter&quot;, we have this option, like in any other module: Hide if empty Because the module is not completely empty, and it have some hidden values this option is not working for module &quot;mod&#95;hikashop&#95;filter&quot;, right?")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3.27

Hi

Before I opened this topic, I searched the forum, found some discussions, but I'm not sure they were related to my question.
When we use the module "mod_hikashop_filter", we have this option, like in any other module: **Hide if empty**
Because the module is not completely empty, and it have some hidden values this option is not working for module "mod_hikashop_filter", right?

- [ ![oxido-hide-if-empty-admin.jpg](/forum/attachment/52217) ](/forum/attachment/52217 "...mpty-admin.jpg") [ ](/forum/attachment/52217?download=1 "...mpty-admin.jpg")
- [ ![oxido-not-empty-module.jpg](/forum/attachment/52218) ](/forum/attachment/52218 "...pty-module.jpg") [ ](/forum/attachment/52218?download=1 "...pty-module.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzkwMjExNC1maWx0ZXItbW9kdWxlLWhpZGUtaWYtZW1wdHktaXMtdGhpcy13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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
-
-

5 years 8 months ago [\#330476](#330476) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter module Hide if empty, is this working?](/forum/45-filters-search/902114-filter-module-hide-if-empty-is-this-working#330476 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3.27  Hi  Before I opened this topic, I searched the forum, found some discussions, but I'm not sure they were related to my question. When we use the module &quot;mod&#95;hikashop&#95;filter&quot;, we have this option, like in any other module: Hide if empty Because the module is not completely empty, and it have some hidden values this option is not working for module &quot;mod&#95;hikashop&#95;filter&quot;, right?")*

Hi,

That's correct. This option, which by the way is added to all the modules on your website by Advanced Modules Manager, check if the module returns any HTML to hide the rest of the area. And since the filter module will always output HTML, even if no filters appear, it won't work.
Now, with a bit of custom javascript, you would be able to achieve it:
[ stackoverflow.com/questions/11290432/jqu...f-child-div-is-empty](https://stackoverflow.com/questions/11290432/jquery-hide-parent-div-if-child-div-is-empty)

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

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

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