Add below JS in Advanced Settings-Custom JavaScript section:
function goTopAddListen() {
if(typeof jQuery != 'undefined' && jQuery('.giraffly_PCPreviewbutton').length > 0) {
jQuery('.giraffly_PCPreviewbutton, .PCPreviewbutton').on('click', function() {
window.scrollTo({
top: 0,
left: 0,
behavior: 'smooth'
})
})
} else {
setTimeout(() => {
goTopAddListen();
}, 1000)
}
}
goTopAddListen();
Note: If the value of top is zero, this means SATC Bar will go to header part of product pages. The precise value of top depends on merchant requested positions, we can revise the value of top to make it display on other positions also.
Add below JS in Advanced Settings-Custom JavaScript section:
function goTopAddListen() {
if(typeof jQuery != 'undefined' && jQuery('.giraffly_PCPreviewbutton').length > 0) {
jQuery('.giraffly_PCPreviewbutton, .PCPreviewbutton').on('click', function() {
window.scrollTo({
top: 0,
left: 0,
behavior: 'smooth'
})
})
} else {
setTimeout(() => {
goTopAddListen();
}, 1000)
}
}
goTopAddListen();
Note: If the value of top is zero, this means SATC Bar will go to header part of product pages. The precise value of top depends on merchant requested positions, we can revise the value of top to make it display on other positions also.