Filter module keeps displayed

  • Posts: 37
  • Thank you received: 3
4 years 4 months ago #321762

-- url of the page with the problem -- : kaldiboz.nl/shop
-- HikaShop version -- : 4.3.0
-- Joomla version -- : latest
-- PHP version -- : 7.4
-- Browser(s) name and version -- : multiple browser
-- Error-message(debug-mod must be tuned on) -- : none

Hi, have a strange issue.

I am running the filter module (only visible for administrators).

See 'FIlterGoed' for how it looks in the category
I disabled the filter (see settings) in the product
But in the product it still shows an empty column (image ZouLeegMoetenZijn).

Any idea what causes this?

Attachments:
Last edit: 4 years 4 months ago by Robby.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 4 months ago #321765

Hi,

That's a common issue:
www.hikashop.com/forum/filters-search/89...-display-always.html
Besides modifying the template's PHP to check that the modules HTML is empty before displaying the area, the only other solution is to add some CSS to check if the div of the area is empty and if so, hide it with display:none;
developer.mozilla.org/en-US/docs/Web/CSS/:empty

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 3
4 years 4 months ago #321893

I didn't totally understand this, so I solved it in a different way and I am putting it here so others can also learn this.

I use Advanced Module Manager and selected the module to display in certain categories
Within the module I select to NOT display the filter module on the product itself (but this leads to an empty column)
So what I did (within the module) is go to the Advanced Module Manager properties ' url' and exclude.
Here I manually filled the machines where I don't want the filter to display. Since this is around 20 it's not that much work
I am pretty sure it can be done with a regular expression OR CSS or Template changes, but this was a quick fix for now

Hope somebody else learns something from this while having the same issue.

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum