Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How can I remove the dropdown cart feature from my Gem theme?

How can I remove the dropdown cart feature from my Gem theme?

ryanmo
Visitor
3 0 0

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

tornado-vaper.de

View Synonyms and Definitions
Reply 1 (1)

PageFly-Richard
Shopify Partner
4801 1085 1753

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.