Jump to content

Bug Pagination en PS 1.7.2 ?


Recommended Posts

  • 2 months later...

Bonjour à tous,

Pour ceux que cela intéresse, j'ai trouvé ça à ajouter au core.js :

  $( '#products' ).on( 'click', '.js-search-link', function( event ) {
    var target = $( "#header" );
    if ( target.length ) {
      event.preventDefault();
      $( 'html, body' ).animate( {
        scrollTop: target.offset().top+300
      }, 1000 );
    }
  });

Bon, c'est curieux, ça exécute le top avant le chargement de la page...

C'est ici :
https://www.prestashop.com/forums/topic/586607-after-next-page-go-to-top/

 

 

 

 

Link to comment
Share on other sites

39 minutes ago, Pierre Webwalker said:

Bonjour à tous,

Pour ceux que cela intéresse, j'ai trouvé ça à ajouter au core.js :


  $( '#products' ).on( 'click', '.js-search-link', function( event ) {
    var target = $( "#header" );
    if ( target.length ) {
      event.preventDefault();
      $( 'html, body' ).animate( {
        scrollTop: target.offset().top+300
      }, 1000 );
    }
  });

Bon, c'est curieux, ça exécute le top avant le chargement de la page...

C'est ici :
https://www.prestashop.com/forums/topic/586607-after-next-page-go-to-top/

 

 

 

merci pour le partage

 

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