Close

Specification Filters Closed by default.

waakdraak
10 years ago
#4137 Quote
Avatar
  • 3
Hi!

I was wondering if there is a way for me to have the filters (toggleControl) minimized / closed when the page is opened for the first time?

Kind regards,

Niels
waakdraak
10 years ago
#4138 Quote
Avatar
  • 3
Solved it. Easy enough. Just added a script on the bottom of the specificationfilter.cshtml

        if (specificationFilterGroup.Name != "Wijncategorie")
        {
            <script type="text/javascript" language="javascript">
                $("@String.Concat("#","fgp",specificationFilterGroup.Name, specificationFilterGroup.Id)").addClass('filtersGroupPanelHide');
                $("@String.Concat("#","a",specificationFilterGroup.Name, specificationFilterGroup.Id)").addClass('closed');
            </script>
        }
Boyko
10 years ago
#4139 Quote
Avatar
  • Moderator
  • 1570
Hi Niels,

There are settings in the administration of the plugin for each filter to be closed by default i.e price range filter, specification filters, attribute filters etc. This is in version 3.1 and higher.

Thanks
Regards,
Nop-Templates.com Team
waakdraak
10 years ago
#4140 Quote
Avatar
  • 3
Ah thanks for the support., I didn't see it because I'm working with 3.02 (can't really upgrade nop because of changes)

I'll keep my quickfix alive then.

Thanks!