Close

Hide filters group

vedran
12 years ago
#1196 Quote
Avatar
  • 45
Can I hide the filter group?
Example:
-on this page choose filter "SEASON/WINTER"
- then look group "VEIL" or "TASTE" or "RING"
These group do not have a solutions. Can I make them invisible?
Support
12 years ago
#1205 Quote
Avatar
  • Moderator
  • 1044
vedran wrote:
Can I hide the filter group?
Example:
-on this page choose filter "SEASON/WINTER"
- then look group "VEIL" or "TASTE" or "RING"
These group do not have a solutions. Can I make them invisible?


Hi Vedran,

There is no easy way out of the box to do this. You can create some custom javascript that checks if there are only the All option available to hide it and to show it again if more options are available.

Best Regards,
Nop-Templates Support Team
winebear
9 years ago
#9233 Quote
Avatar
  • 37
I need to do something similar, can you clarify what event I would need to hook in to (for the JavaScript) to do this each time a filter is selected (so that I can hide, or re-show, as appropriate)?
iliyan.tanev
9 years ago
#9242 Quote
Avatar
  • 347
Hi,

We broadcast nopAjaxFiltersFiltrationCompleteEvent on every filtration. Maybe you could use this event.
Regards,
Iliyan Tanev
Nop-Templates Dev Team
winebear
9 years ago
#9245 Quote
Avatar
  • 37
Perfect, works a treat, thank you