Jump to content

Layered navigation 1.10.5


Recommended Posts

I'm having the same issue. Tried it in Chrome and Firefox. This is for "Layered navigation block v1.10.6 "

 

If you select dropdown options nothing happens unless you select a checkbox option afterwards or if you adjust a slider. 

 

To see it "not" (being cheeky) in action go to http://foxfirearms.com.192-168-101-1.stnhost.com/14-handguns and then select one of the manufacturers in the drop down.

 

Cheers,

Don

Edited by stnadmin (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...

I had the same problem but i fixed it by changing a little javascript.

 

Open the following file with a text editor or dreamweaver: 

themes/default-bootstrap/js/modules/blocklayered/blocklayered.js

 

Find this piece of code, it's on line 45 in my file.

 

// Click on checkbox    
    $(document).on('change', '#layered_form select', function(e) {
        reloadContent();
    });

 

Replace it with:

 

// Click on checkbox    
    $(document.body).on('change', '#layered_form select', function(e) {
        reloadContent();
    });

 

Apparently jquery can't find the select boxes so i changed  $(document) to  $(document.body) and now it works (at least for me)

Link to comment
Share on other sites

I have the same problem on PS 1.6. I changed one filter type to drop-down list from checkbox. If you click on the drop-down list it will immediately start filtering your store. If you are not enough quick, you cannot select anything. But if I am quick enough I can select 1 option in the drop-down list.

 

So I changed the in the "themes/default-bootstrap/js/modules/blocklayered/blocklayered.js" the following in the line 45:

From:

$(document).on('click', '#layered_form .select', function(e) {
        reloadContent();
    });

 

To:

$(document).on('click', '#layered_form .select option', function(e) {
        reloadContent();
    });

 

This function will only be executed only if you click on the already dropped list item and not on the drop-down box itself.

Now it works fine for me.

Link to comment
Share on other sites

×
×
  • Create New...