Filter module Hide if empty, is this working?

  • Posts: 231
  • Thank you received: 28
  • Hikashop Business
3 years 8 months ago #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 "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?

Attachments:

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
3 years 8 months ago #330476

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

The following user(s) said Thank You: oxido

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

Time to create page: 0.054 seconds
Powered by Kunena Forum