Jump to content

Prestashop 1.6.0.9-1.6.0.10 blocklayered bug


Kerm

Recommended Posts

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

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

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

  • 3 weeks later...

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

×
×
  • Create New...