Jump to content

blocklayered scroll down


detoyboys

Recommended Posts

Hi,

 

I have an issue with the block layered navigation module.
When the filter is applied it filters the products the right way but the page shows all the subcategories thumbs first so you don't see the products that are filtered first.

 

When I reload the page manualy it scrolls to the products like I want it to.
Is this a .js caching issue or something like that?

 

Here's an example link of my shop: https://detoyboys.nl/en/22-batman

  • Like 1
Link to comment
Share on other sites

Hi,

 

I have an issue with the block layered navigation module.

When the filter is applied it filters the products the right way but the page shows all the subcategories thumbs first so you don't see the products that are filtered first.

 

When I reload the page manualy it scrolls to the products like I want it to.

Is this a .js caching issue or something like that?

 

Here's an example link of my shop: https://detoyboys.nl/en/22-batman

 

 

In the theme the js folder, find the file global.js and at the very end of the file add this code

$(document).ready(function(){
	$('.layered_filter input').click(function(e) {
		e.stopPropagation();
		$.scrollTo('#product_list', 400);
	});
});
Link to comment
Share on other sites

  • 2 weeks later...

 

In the theme the js folder, find the file global.js and at the very end of the file add this code

$(document).ready(function(){
	$('.layered_filter input').click(function(e) {
		e.stopPropagation();
		$.scrollTo('#product_list', 400);
	});
});

Thanks for you reply.

 

I added the code to global.css at the bottom but this resulted in the filter not working at all.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...