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

#   Menu module shows all categories, even disabled

##

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

Less More

- Posts: 179
- Thank you received: 17
-
-
- [](http://oceansafety.com)
-

15 years 8 months ago [\#12072](#12072) by [rikatos](/forum/user/1634-rikatos "View rikatos's Profile")  *[Menu module shows all categories, even disabled](/forum/3-bug-report/12072-menu-module-shows-all-categories-even-disabled#12072 "Hi there and good morning !  On my test site I have a top menu item called products. This calls up a rather cool page with all my top level and sub category items. Very nice.  A link to it :   redcell.co.uk/test1/index.php?option=com...out=listing&amp;Itemid=7  There is a slight error though. The categories under liferafts are showing all categories even the ones I have disabled at the moment. (•MED Ship's Wheel •Self righting •Chutes, Slides &amp; Recovery ) are all disabled but are still showing and can be selected.  Any ideas, I suspect this is just a coding oversight :)")* was created by *[rikatos](/forum/user/1634-rikatos "View rikatos's Profile")*

Hi there and good morning !

On my test site I have a top menu item called products. This calls up a rather cool page with all my top level and sub category items. Very nice.

A link to it :
[ redcell.co.uk/test1/index.php?option=com...out=listing&amp;Itemid=7](http://redcell.co.uk/test1/index.php?option=com_hikashop&view=category&layout=listing&Itemid=7)

There is a slight error though. The categories under liferafts are showing all categories even the ones I have disabled at the moment.
(•MED Ship's Wheel
•Self righting
•Chutes, Slides &amp; Recovery ) are all disabled but are still showing and can be selected.

Any ideas, I suspect this is just a coding oversight ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xMjA3Mi1tZW51LW1vZHVsZS1zaG93cy1hbGwtY2F0ZWdvcmllcy1ldmVuLWRpc2FibGVkP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

15 years 8 months ago [\#12085](#12085) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Menu module shows all categories, even disabled](/forum/3-bug-report/12072-menu-module-shows-all-categories-even-disabled#12085 "Hi there and good morning !  On my test site I have a top menu item called products. This calls up a rather cool page with all my top level and sub category items. Very nice.  A link to it :   redcell.co.uk/test1/index.php?option=com...out=listing&amp;Itemid=7  There is a slight error though. The categories under liferafts are showing all categories even the ones I have disabled at the moment. (•MED Ship's Wheel •Self righting •Chutes, Slides &amp; Recovery ) are all disabled but are still showing and can be selected.  Any ideas, I suspect this is just a coding oversight :)")*

Indeed. Please change the line:
$query = 'SELECT * FROM '.hikashop::table('category').' WHERE category_parent_id IN ('.implode(',',$ids).') ORDER BY category_ordering;';

by:
$childsFilters = array('category_published=1', 'category_parent_id IN ('.implode(',',$ids).')');
hikashop::addACLFilters($childsFilters,'category_access');
$query = 'SELECT * FROM '.hikashop::table('category').' WHERE '.implode(' AND ',$childsFilters).' ORDER BY category_ordering;';

in the file components/com_hikashop/views/category/view.html.php
That fix will be added to next version of HikaShop.

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

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

Less More

- Posts: 179
- Thank you received: 17
-
-
- [](http://oceansafety.com)
-

15 years 8 months ago [\#12098](#12098) by [rikatos](/forum/user/1634-rikatos "View rikatos's Profile")  Replied by *[rikatos](/forum/user/1634-rikatos "View rikatos's Profile")* on topic *[Re: Menu module shows all categories, even disabled](/forum/3-bug-report/12072-menu-module-shows-all-categories-even-disabled#12098 "Hi there and good morning !  On my test site I have a top menu item called products. This calls up a rather cool page with all my top level and sub category items. Very nice.  A link to it :   redcell.co.uk/test1/index.php?option=com...out=listing&amp;Itemid=7  There is a slight error though. The categories under liferafts are showing all categories even the ones I have disabled at the moment. (•MED Ship's Wheel •Self righting •Chutes, Slides &amp; Recovery ) are all disabled but are still showing and can be selected.  Any ideas, I suspect this is just a coding oversight :)")*

Great , it works, thank you once again.

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