Kerm Posted October 8, 2014 Share Posted October 8, 2014 Hello, I found bug: when you click on select item to display the list of parameters for filter shop products, it go filter products immediately, script is triggered immediately on first click and page reload and there's no time to select parameter for filter. Here some demo: _en.intreccio.ru/en/81847054-%D0%B3%D0%B5%D1%82%D1%80%D1%8B Link to comment Share on other sites More sharing options...
Kerm Posted October 8, 2014 Author Share Posted October 8, 2014 Problem in this code: $(document).on('click', '#layered_form .select, #layered_form input[type=checkbox], #layered_form input[type=radio]', function(e) { reloadContent(true); }); Some one add this: #layered_form .select And page go reload each time you click on select Link to comment Share on other sites More sharing options...
Kerm Posted October 8, 2014 Author Share Posted October 8, 2014 This must fix that: $(document).on('click', '#layered_form input[type=checkbox], #layered_form input[type=radio]', function(e) { reloadContent(true); }); $('#layered_form .select').change(function () { reloadContent(true); }); But now i found one more bug, if select "no filter" nothing happen and also if cancel selected filters nothing happen bc some one put script inside function "cancelFilter"... Link to comment Share on other sites More sharing options...
Kerm Posted October 8, 2014 Author Share Posted October 8, 2014 I cant cancel selected filters bc have error: Uncaught TypeError: Cannot read property 'search' of undefined Any ideas? Link to comment Share on other sites More sharing options...
DavideZ Posted October 28, 2014 Share Posted October 28, 2014 I have found a bug too: - select a product category - click on a manufacturer filter Now products filtered by manufacturer are shown - cancel the filter - clck again on a manufacturer filter Now it doesn't work To make it work again it's needed to reload the page (without any # chars). I noticed that because I've created a link to a category with filter as blocklayered create it, I mean, if there is a category named "shirts" and a manufacturer named "beneroll" I create an url like "http://localhost/mystore/8_shirts#manufacturer-beneroll" and it doesn't work, it works only if I create a link with filters on condition or disponibility. Obviously the url created follow my friendly urls, so in an italian store it's http://localhost/mystore/8_shirts#produttore-beneroll Link to comment Share on other sites More sharing options...
Recommended Posts