How to remove cart pop-up after clicking add to cart on broadcast

How to remove cart pop-up after clicking add to cart on broadcast

lilcomforts
Visitor
3 0 3

I want to remove the pop-up that automatically goes to the cart when you add something to your bag. It does it even on "quick add" and it makes me feel like people are getting rushed to check out rather than continue to shop around. please help!

Reply 1 (1)

BlackCro
Shopify Partner
103 19 18

Depending on the theme you're using, you should have a cart-notification.js in the assets folder. You can then comment out the open function using /* and */ to stop this pop-up, please see example below. 

 

  /*open() {
    this.notification.classList.add('animate', 'active');

    this.notification.addEventListener(
      'transitionend',
      () => {
        this.notification.focus();
        trapFocus(this.notification);
      },
      { once: true }
    );

    document.body.addEventListener('click', this.onBodyClick);
  }*/

 

Hope this helps

BlackCro.co.uk

CRO & Development Agency



Better Forms - Get a better contact form today!