Shopify themes, liquid, logos, and UX
Hi,
I would like to remove the dropdown cart that appears every time that customers add an item to their cart *the window that pops out).
So basically just have the tiny bubble icon that shows the number of items in the cart, without having this dropdown triggered every time that they add something.
Can someone help ?
Using Gem theme
Hi @ryanmo
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<script>
setTimeout(() => {
const btns = document.querySelectorAll('button.single_add_to_cart_button.button.alt')
btns.forEach((b,i) => {
b.onclick = () => {
window.location.reload()
}
})
},500)
</script>
It will force window to reload after add to cart
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024