shopping cart quick add

main
alexanderroese 2024-06-22 17:14:16 +02:00
parent f993d9537d
commit d38886922f
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@
endcapture
%}
console.log("3", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
console.log("1", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
</script>

View File

@ -23,10 +23,10 @@
<script>
document.addEventListener('scroll', function() {
var scrollButton = document.getElementsByTagName('scrollToCartButton')[0];
if (scrollButton == null) return
var scrollButton = document.getElementsByTagName('scroll-to-cart-button')[0];
console.log("scrollButton", scrollButton)
if (window.scrollY > 300) { // Zeigt den Button an, wenn mehr als 300px gescrollt wird
scrollButton.style.display = 'block';
} else {