Jump to content

Featured Search - Stay put instead of returning to the top of the page


anikko

Recommended Posts

Hi,

I request your help for a very annoying issues with the featured search native module. When I selected or remove a filter, the scroll goes up. I tried to reinstall from scratch, but the problem is still here. Could you help me please ?

I'll let you see the experience could be improved :

faceted-search2.thumb.gif.78f2a8509cb22c4300d3b3ae13728cc4.gif

I'm working on prestashop 1.7.2.4 with featured search 2.1.0, the issue occurs only when I try on my remote server (PHP 7.0).

Edited by anikko (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Thank you so much Razaro, after following your link, I manage to find the bug it was here :

function updateResults (data) {
    pendingQuery = false;
    prestashop.emit('updateProductList', data);
    window.history.pushState(data, undefined, data.current_url);
    window.scrollTo(0, 0);
}

Into _core/js/facets.js (Dev branch).

I remove widow.scrollTo(0, 0) and then use webpack to generate core.js.

I have attached the core.js for people who want this fix. (just put it on themes/)

core.js

Edited by anikko (see edit history)
  • Thanks 1
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...