Jump to content

Remove scroll to top after updateFacets


Paolo75

Recommended Posts

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

  • 4 months later...
  • 1 month later...
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

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

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...