Hi,
which part do I have to transfer/copy when I want to use the cart-button in the template "Shop and Buy"
Best regards
ocean
var btn = document.id('btnCart');
window.addEvent('scroll', function(e) {
var scroll = window.getScroll().y;
var max = document.id('gkMainWrap').getSize().y;
var final = 0;
if(scroll > 70) {
if(scroll < max - 122) {
final = scroll - 50;
} else {
final = max - 172;
}
} else {
final = 20;
}
btn.setStyle('top', final + "px");
});