Jump to content

Edit History

hshaker

hshaker

works perfect in PS 1.7.6.1 --> themes/mytheme/assets/js/custom.js

$(document).ready(() => {
    prestashop.on('updateProductList', () => {
        let target = $("#wrapper");
        if (target.length) {
            $('html, body').animate({
                scrollTop: target.offset().top+350
            }, 500);
        }
    });
});

 

hshaker

hshaker

works perfect in PS 1.7.6.1

$(document).ready(() => {
    prestashop.on('updateProductList', () => {
        let target = $("#wrapper");
        if (target.length) {
            $('html, body').animate({
                scrollTop: target.offset().top+350
            }, 500);
        }
    });
});

 

hshaker

hshaker

works perfect in PS 1.7.6.1

```

$(document).ready(() => {

prestashop.on('updateProductList', () => {

  let target = $("#wrapper");

  if (target.length) {

      $('html, body').animate({

          scrollTop: target.offset().top+350

          }, 500); }

  });

});

```

hshaker

hshaker

works perfect in PS 1.7.6.1

```

$(document).ready(() => { prestashop.on('updateProductList', () => { let target = $("#wrapper"); if (target.length) { $('html, body').animate({ scrollTop: target.offset().top+350 }, 500); } }); });

```

×
×
  • Create New...