Categories: Ecommerce

How to disable popups for touch device in BigCommerce

Nowadays everyone prefers the responsive website which can be easily used in small devices like tablets, and mobiles. Online shopping websites are no exceptions.

And being a BigCommerce design and development services you’re responsible to improve shoppers experience while they are using responsive online shopping website. One of the most painful things are the modal popups in smaller devices. For example, quickview popup, add to Cart popup and Gift certificate popup in BigCommerce. These popups should be disabled in small devices to improve the shopper’s experience while they are shopping.
Let’s talk about how to hide each popup in BigCommerce. First of all download the theme backup, just to be safe. To do this go to your admin panel, go to design and click on download theme.

Hiding quick view popup

In your mobile specific css or the media query targeting the small screens, just paste the below code.

1
2
3
4
.QuickViewBtn
{
display:none ;
}

Hiding Gift certificate popup

Go to admin area of your bigcommerce, then click on the design which is on the right top of the admin area. There you will find the Edit HTML/CSS, click on it and look for “PurchaseGiftCertificate.html” In that panel, find the code shown in below screen shot and add a unique class (for example “prevbtn”) to the preview button.

Write below css code to your mobile specific css or the media query targeting the small screens.

1
2
3
4
.prevbtn
{
display:none ;
}

Hiding AddToCart popup

Now about the Add to cart popup. Obviousely we can not disable the button Add to cart which will prevent buyer from buying anything and it will be a huge loss in selling. What you need to do is, when they click on the Add to Cart button, instead of opening popup, it should redirect to the cart page.

First off all download the common.js by downloading the template from admin panel.

Follow below instruction to write code into the common.js.

Find for the code config.FastCart=0; and wrap it with mobile specific condition like shown below in common.js. Save it and upload using webdev to js folder to your BigCommerce template.

1
2
3
4
5
6
7
if( /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) )
{
if( isMobile.any() )
{
config.FastCart=0;
}
}

Attach the common.js file in HTMLhead panel in the same position from where the master file is coming, no need to call both master and the webdev common.js just call webdev file.

And check in mobile device that addtocart popup will not come on click of the addtocart button.

With the above solution all three popup is hide in mobile devices which is good not to have such things in a small screen.

Need Help?

We’re certified BigCommerce design services and can help you with anything you need. Contact us here.

Jaimin Gohel

Recent Posts

How Shopify POS & Unified Data are Transforming Indian Retail in 2026

Discover how Shopify POS and unified data are reshaping Indian retail in 2026. Learn how…

2 weeks ago

Top 5 B2B Ecommerce Trends in 2026: Why BigCommerce is the Go-To Platform for Wholesalers

Discover why BigCommerce is the top platform for Indian wholesalers in 2026. Explore B2B trends…

2 months ago

B2B eCommerce on Shopify: 15 Game-Changing Trends to Watch in 2025–2026

B2B eCommerce is not trailing B2C anymore, it is leaping forward with the digital transformation.…

4 months ago

Why BigCommerce’s AI-Driven Rebrand Signals the Future of Online Shopping

The e-commerce landscape is experiencing its biggest transformation since the dawn of online shopping. BigCommerce's…

5 months ago

The Future of Multi-Brand Ecommerce: Personalization & Efficiency with AI on Shopify

Introduction Ecommerce is no longer about running a single online store. Today, brands are managing…

6 months ago

AI-Powered Personalization: What It Means for Your BigCommerce Sales

The proverb, one-size-fits-all is not applicable in the dynamic environment of ecommerce anymore. The current…

6 months ago