Paolo75 Posted February 21, 2019 Share Posted February 21, 2019 Hi, I'd like to remove the default behavior on my Prestashop 1.7, when we update the facets, and remove the "scroll to top" effect. I searched into core.js, theme.js, but did not find anything related. I also tried to add a "return:false;" on the updateFacets events, no result. Thanks ! Link to comment Share on other sites More sharing options...
yakusa Posted July 11, 2019 Share Posted July 11, 2019 Here is clue prestashop.on('updateFacets', function (event) { }); Link to comment Share on other sites More sharing options...
Areama Posted August 23, 2019 Share Posted August 23, 2019 Anyone know how to solve this? Link to comment Share on other sites More sharing options...
Paolo75 Posted August 30, 2019 Author Share Posted August 30, 2019 On 8/23/2019 at 11:35 AM, Areama said: Anyone know how to solve this? Hello Areama, the only solution is to edit the CORE Javascript file but it's a bad practice. In themes/core.js, look for the 'updateProductList' event or the 'updateResults' function : you have to remove or comment the line with 'window.scrollTo[.....]' Link to comment Share on other sites More sharing options...
Areama Posted August 31, 2019 Share Posted August 31, 2019 23 hours ago, Paolo75 said: Hello Areama, the only solution is to edit the CORE Javascript file but it's a bad practice. In themes/core.js, look for the 'updateProductList' event or the 'updateResults' function : you have to remove or comment the line with 'window.scrollTo[.....]' Thanks. Yes, this is not good solution for module. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now