How can I make it so that when I click this button the cart window closes?

How can I make it so that when I click this button the cart window closes?

Rousil
New Member
6 0 1
How can I make it so that when I click this button the cart window closes?
 
Rousil_0-1727885383813.png

 

Replies 3 (3)

PaulNewton
Shopify Partner
7078 629 1484

Hi @Rousil 👋 that requires an advanced theme customization which varies wildly among themes and what you mean by "window" as most themes use cart drawers , modals or in-page popups.

 

If you need this customization then contact me for services
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Rousil
New Member
6 0 1

That is, the cart drawer sends you an image, which does the same as pressing the x

Rousil_0-1727889399777.pngRousil_1-1727889407898.png

 

 

PaulNewton
Shopify Partner
7078 629 1484

Yeah that's possible with javascript, if you savvy just attach and event listener to that button that prevents the default click behavior and instead proxy clicks the close button.

 

Good Luck.

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org