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

#   hide position when filter module not displayed

##

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

Less More

- Posts: 26
- Thank you received: 1
-
-

10 years 2 weeks ago -  10 years 2 weeks ago [\#255419](#255419) by [nalta](/forum/user/33931-nalta "View nalta's Profile")  *[hide position when filter module not displayed](/forum/45-filters-search/887520-hide-position-when-filter-module-not-displayed#255419 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.3  Hi there ! I didn't found somewhere in this forum where you solved this situation :  This is my index.php code :  When there are no module published in left, the whole aside stuff shouldn't display. The problem is with hikashop filtering module I set the &quot;Display on the product page&quot; option to no and i stil get on my page. the module isn't displayed but I still get the container to show itself.  Thanks for your help ! Regards")* was created by *[nalta](/forum/user/33931-nalta "View nalta's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6.3

Hi there !
I didn't found somewhere in this forum where you solved this situation :

This is my index.php code : Code:

&lt;?php if ($this-&gt;countModules('left')) : ?&gt; &lt;aside class="col-md-4"&gt; &lt;jdoc:include type="modules" name="left" style="xhtml"/&gt; &lt;/aside&gt; &lt;div class="col-md-8"&gt; &lt;?php else : ?&gt; &lt;div class="col-xs-12"&gt; &lt;?php endif; ?&gt;

When there are no module published in left, the whole aside stuff shouldn't display.
The problem is with hikashop filtering module I set the "Display on the product page" option to no
and i stil get Code:

&lt;aside class="col-md-4"&gt; &lt;/aside&gt; &lt;div class="col-md-8"&gt;

on my page. the module isn't displayed but I still get the container to show itself.

Thanks for your help !
Regards

Last edit: 10 years 2 weeks ago by [nalta](/forum/user/33931-nalta "View nalta's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 weeks ago [\#255420](#255420) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hide position when filter module not displayed](/forum/45-filters-search/887520-hide-position-when-filter-module-not-displayed#255420 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.3  Hi there ! I didn't found somewhere in this forum where you solved this situation :  This is my index.php code :  When there are no module published in left, the whole aside stuff shouldn't display. The problem is with hikashop filtering module I set the &quot;Display on the product page&quot; option to no and i stil get on my page. the module isn't displayed but I still get the container to show itself.  Thanks for your help ! Regards")*

Hi,

Please check all your modules in the position "left".
Your template do not know that the modules have no content ; but he just know that there is published modules.
If the block is there, it means that you have a published module in that position and you have a module which return an empty content.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

10 years 2 weeks ago [\#255612](#255612) by [nalta](/forum/user/33931-nalta "View nalta's Profile")  Replied by *[nalta](/forum/user/33931-nalta "View nalta's Profile")* on topic *[hide position when filter module not displayed](/forum/45-filters-search/887520-hide-position-when-filter-module-not-displayed#255612 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.3  Hi there ! I didn't found somewhere in this forum where you solved this situation :  This is my index.php code :  When there are no module published in left, the whole aside stuff shouldn't display. The problem is with hikashop filtering module I set the &quot;Display on the product page&quot; option to no and i stil get on my page. the module isn't displayed but I still get the container to show itself.  Thanks for your help ! Regards")*

Hi,
Thank you for trying to help.

Thats what I'm saying I have no other module in position "left" except hikashop filtering module.
When I set I set the "Display on the product page" option to no it returns an empty content ...

Regards

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

10 years 2 weeks ago [\#255614](#255614) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[hide position when filter module not displayed](/forum/45-filters-search/887520-hide-position-when-filter-module-not-displayed#255614 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.3  Hi there ! I didn't found somewhere in this forum where you solved this situation :  This is my index.php code :  When there are no module published in left, the whole aside stuff shouldn't display. The problem is with hikashop filtering module I set the &quot;Display on the product page&quot; option to no and i stil get on my page. the module isn't displayed but I still get the container to show itself.  Thanks for your help ! Regards")*

Hi,

HikaShop cannot hide a position of the template when a module of HikaShop is empty.
All HikaShop can do is make sure that the HTML returned by the module is empty.
Then, it's up to the template to check that the HTML returned is empty so that it displays the position HTML or not.
Here is for example a thread talking about possibilities to do that by default in Joomla and with a solution at the end for templates:
[ groups.google.com/forum/#!topic/joomlabugsquad/8hcxWyyNpxc](https://groups.google.com/forum/#!topic/joomlabugsquad/8hcxWyyNpxc)
Here is another solution for templates:
[ forum.joomla.org/viewtopic.php?t=324899](https://forum.joomla.org/viewtopic.php?t=324899)

The bottom line is that we can't give you a precise solution as it has to be done in the template and thus you should contact your template provider.

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

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

Less More

- Posts: 26
- Thank you received: 1
-
-

10 years 2 weeks ago [\#255728](#255728) by [nalta](/forum/user/33931-nalta "View nalta's Profile")  Replied by *[nalta](/forum/user/33931-nalta "View nalta's Profile")* on topic *[hide position when filter module not displayed](/forum/45-filters-search/887520-hide-position-when-filter-module-not-displayed#255728 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.3  Hi there ! I didn't found somewhere in this forum where you solved this situation :  This is my index.php code :  When there are no module published in left, the whole aside stuff shouldn't display. The problem is with hikashop filtering module I set the &quot;Display on the product page&quot; option to no and i stil get on my page. the module isn't displayed but I still get the container to show itself.  Thanks for your help ! Regards")*

Okay I fixed it with : Code:

if(JModuleHelper::renderModule(array_shift(JModuleHelper::getModules( 'left' ))) == "") :

Thanks for your help !

Regards

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

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