Event Listener When Shopping Cart is Visible

New Member
1 0 0

My Goal is to insert a script Tag on every website on Shopify, and Modify the shopping cart buttons, lines, design etc...
Is there an event Listener on the shopping cart that tells me the `shopping cart div` is visible?

And is there any docs on all the events available?

 

talking pure JS, not Liquid. 

0 Likes

Hi there

 

You can add a script tag to your theme.liquid file, or you can directly add your JS code to theme.js file to handle what you want

 

I recommend you to install PageFly app (Free plan available) to easily custom you Button (Styling, add event handler, custom position,...)

 

Hope you do it well, have a good day!

Richard | Front-end Dev @ PageFly
- Click 'Like' to let me know you like my answer!
- Are you having problems building Shopify stores? Check out PageFly - An Advanced Page Builder whose goal is to empower anyone to build a perfect store.
0 Likes