Page 1 of 1

Feature Request - Set scrollTo offset

Posted: 16 Dec 2020, 00:50
by dangermark
Hi,

It would be great to be able to set a scrollTo offset value in the checkout.

For example we have a sticky navigation so when the scrollTo gets triggered (when enabled) the address/shipping etc panels get partially hidden behind it.

So being able to set maybe an offset value would be awesome.

Re: Feature Request - Set scrollTo offset

Posted: 20 Dec 2020, 01:00
by Jan
Hi, added to feature request list.

For now it can be customized in:
administrator/components/com_phocacart/libraries/phocacart/render/js.php

method: renderJsScrollTo (line cca 1165)

for example

FROM:

Code: Select all

jQuery(\'html,body\').animate({scrollTop: jQuery("#' . $scrollTo . '").offset().top}, 1500 );
TO:

Code: Select all

jQuery(\'html,body\').animate({scrollTop: jQuery("#' . $scrollTo . '").offset().top - 100}, 1500 );
Jan