Prestashop: Layered Navigation Block – Auto Scroll to Products

Source: https://www.prestashop.com/forums/topic/347990-layered-navigation-block-auto-scroll-to-products/

js file under “/themes/themename/js/modules/blocklayered” called “blocklayered.js”

Solution 1:

Replace :

$.scrollTo('.product_list', 400);

by

$.scrollTo('product_list', 0); //stop the scroll

or

$.scrollTo('body', 0); // brings to the top of the page instantly.

Solution 2:

//if(slideUp)
	//$.scrollTo('.product_list', 400);
//updateProductUrl();

 

This entry was posted in ecommerce, modules and tagged . Bookmark the permalink.