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

#   Hide Filter module from individual product pages

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 3 months ago [\#57597](#57597) by [chama](/forum/user/8073-chama "View chama's Profile")  *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#57597 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")* was created by *[chama](/forum/user/8073-chama "View chama's Profile")*

Hi,
I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to.
Many thanks...

[ ![Capture&#95;2012-07-16.PNG](/forum/attachment/4796) ](/forum/attachment/4796 "...2012-07-16.PNG")

- [ ![Capture&#95;2012-07-16.PNG](/forum/attachment/4796) ](/forum/attachment/4796 "...2012-07-16.PNG") [ ](/forum/attachment/4796?download=1 "...2012-07-16.PNG")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 months ago [\#57656](#57656) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#57656 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hi chama,

To do this, you can edit the file:
YourSite\modules\mod_hikashop_filter\mod_hikashop_filter.php

And add replace: Code:

$js =''; hikashop_initModule(); foreach(get_object_vars($module) as $k =&gt; $v){ if(!is_object($v)){ $params-&gt;set($k,$v); } } $html = trim(hikashop_getLayout('product','filter',$params,$js)); if(!empty($html)){ ?&gt; &lt;div class="hikashop_filter_module"&gt; &lt;?php echo $html;?&gt; &lt;/div&gt; &lt;?php } ?&gt;

By: Code:

if(JRequest::getString('task','')== 'show'){ $js =''; hikashop_initModule(); foreach(get_object_vars($module) as $k =&gt; $v){ if(!is_object($v)){ $params-&gt;set($k,$v); } } $html = trim(hikashop_getLayout('product','filter',$params,$js)); if(!empty($html)){ ?&gt; &lt;div class="hikashop_filter_module"&gt; &lt;?php echo $html;?&gt; &lt;/div&gt; &lt;?php } } ?&gt;

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 3 months ago [\#57731](#57731) by [chama](/forum/user/8073-chama "View chama's Profile")  Replied by *[chama](/forum/user/8073-chama "View chama's Profile")* on topic *[Re: Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#57731 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hi Xavier,
Thanks for the response. However, now with the modified script, the filter is hidden on the product list, but appear on the individual product page. I need the reverse of this. See attached screenshots for results after this modification.
[ ![Capture1.PNG](/forum/attachment/4808) ](/forum/attachment/4808 "Capture1.PNG")

[ ![Capture2.PNG](/forum/attachment/4809) ](/forum/attachment/4809 "Capture2.PNG")

- [ ![Capture1.PNG](/forum/attachment/4808) ](/forum/attachment/4808 "Capture1.PNG") [ ](/forum/attachment/4808?download=1 "Capture1.PNG")
- [ ![Capture2.PNG](/forum/attachment/4809) ](/forum/attachment/4809 "Capture2.PNG") [ ](/forum/attachment/4809?download=1 "Capture2.PNG")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 months ago [\#57754](#57754) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#57754 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Sorry little mistake, replace: Code:

if(JRequest::getString('task','')== 'show'){

By: Code:

if(JRequest::getString('task','')!= 'show'){

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

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

14 years 3 months ago [\#57882](#57882) by [chama](/forum/user/8073-chama "View chama's Profile")  Replied by *[chama](/forum/user/8073-chama "View chama's Profile")* on topic *[Re: Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#57882 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Thanks Xavier,
It's working now.

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

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 4 months ago -  11 years 4 months ago [\#205158](#205158) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[Re: Hide Filter module from individual product pag](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#205158 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Thanks for this solution
1. Can this be placed in a template override? I tried mytemplate/html/mod_hikashop_filter - didnt work!
2. How do i hide the filter from showing in Cart / checkout pages too? I require that the filter only shows on the product pages.
Thanks

> SOLVED - ![:)](/media/kunena/emoticons/8.png ":)")
> Make a new menu hidden item called "Checkout" then in config&gt;checkout force menu item =checkout
> Use the menu assignments on the filter mod to not display in that menu item.

Last edit: 11 years 4 months ago by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile").

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

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

Less More

- Posts: 4
- Thank you received: 1
-
-

10 years 11 months ago -  10 years 11 months ago [\#221475](#221475) by [Twototango](/forum/user/39687-twototango "View Twototango's Profile")  Replied by *[Twototango](/forum/user/39687-twototango "View Twototango's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#221475 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

I altered the code fit to Hikashop 2.6.0:
Code:

if(JRequest::getString('task','')!= 'show'){ $js =''; hikashop_initModule(); foreach(get_object_vars($module) as $k =&gt; $v){ if(!is_object($v) &amp;&amp; $params-&gt;get($k,null)==null){ $params-&gt;set($k,$v); } } } $html = trim(hikashop_getLayout('product','filter',$params,$js)); require(JModuleHelper::getLayoutPath('mod_hikashop_filter'));

Seems to be working... feel free to correct me if anyone sees something amiss or to improve ![;)](/media/kunena/emoticons/11.png ";)")
By the number of questions about this maybe it's a good idea to build in the option as standard?

Last edit: 10 years 11 months ago by [Twototango](/forum/user/39687-twototango "View Twototango's Profile"). Reason: typo's

The following user(s) said Thank You: [Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU3NTk3LWhpZGUtZmlsdGVyLW1vZHVsZS1mcm9tLWluZGl2aWR1YWwtcHJvZHVjdC1wYWdlcz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

10 years 11 months ago [\#221482](#221482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#221482 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hi,

That's a good idea yes.

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

- **[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")**
- [![Holmes-Pierce's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")
- [ Offline](/forum/user/31881-holmes-pierce)

Less More

- Posts: 265
- Thank you received: 1
-
-

10 years 7 months ago [\#232479](#232479) by [Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")  Replied by *[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#232479 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hello,

Could you please share the solution for this with the new /mod_hikashop_filter.php?

Many thanks,
Hal

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

- **[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")**
- [![Holmes-Pierce's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")
- [ Offline](/forum/user/31881-holmes-pierce)

Less More

- Posts: 265
- Thank you received: 1
-
-

10 years 7 months ago [\#232480](#232480) by [Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")  Replied by *[Holmes-Pierce](/forum/user/31881-holmes-pierce "View Holmes-Pierce's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#232480 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Sorry, I was in the wrong file ![:D](/bigsmile.gif ":D")

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

- **[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")**
- [![ydingilski's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37980.png)](/forum/user/37980-ydingilski "View ydingilski's Profile")
- [ Offline](/forum/user/37980-ydingilski)

Less More

- Posts: 52
- Thank you received: 0
-
-
-
- [](http://www.filkab.solar)
-

10 years 7 months ago -  10 years 7 months ago [\#233684](#233684) by [ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")  Replied by *[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#233684 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hi,
The solution from Twototango is not working for products with variants.
Can someone provide a fix or another preferred method to solve the products with variants issue.
Thanks in advance.

P.S. I've checked the "Advanced module manager" but as far as I saw only the paid version can do the trick which is 25 EUR. Although Advanced module manager has 100% rating If I only need the plugin for this job the price is enormous compared to Hikashop. I had already bought Skyline accordion :huh:

Last edit: 10 years 7 months ago by [ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU3NTk3LWhpZGUtZmlsdGVyLW1vZHVsZS1mcm9tLWluZGl2aWR1YWwtcHJvZHVjdC1wYWdlcz90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14267
-
-

10 years 7 months ago [\#233698](#233698) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#233698 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hi,

I don't see why the solution would have to be different for products with variants.
It should work regardless of that.

And no, you can do that with the free version of Advanced Modules Manager too. It's just slightly more complex because instead of just checking off the product pages checkbox, you have to use the URL filter of AMM with a regex based on how the URLs look different on the product pages.

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

- **[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")**
- [![ydingilski's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37980.png)](/forum/user/37980-ydingilski "View ydingilski's Profile")
- [ Offline](/forum/user/37980-ydingilski)

Less More

- Posts: 52
- Thank you received: 0
-
-
-
- [](http://www.filkab.solar)
-

10 years 7 months ago [\#233746](#233746) by [ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")  Replied by *[ydingilski](/forum/user/37980-ydingilski "View ydingilski's Profile")* on topic *[Hide Filter module from individual product pages](/forum/4-how-to/57597-hide-filter-module-from-individual-product-pages#233746 "Hi, I need to hide my filter module appearing on individual product pages (please see the attached). Can you please advise how to. Many thanks...")*

Hi nicolas,
Thank you for the clarification of AMM, I'll check it out.
About the products with variants I made a mistake, apparently the first few products led me into deception. There is a problem in our e-shop because for some of the products the Twototango's solution is not working. After checking more products I'm sure it's not about products with variants. Maybe it's not random but have no idea what is the pattern. I'm not digging into it, because I prefer to spend more time on Advanced Module Manager.

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

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

[](#top)
