Add the Sticky "Add to Cart" Button in Shopify in 5 Minutes

Learn how to add a sticky "Add to Cart" button on Shopify to boost your sales and improve the shopping experience for your customers.

Head and shoulders photo of Jessica Hughes
By Jessica Hughes
Photo of Danell Theron
Edited by Danéll Theron
Joel Taylor
Fact-check by Joel Taylor

Updated November 25, 2024.

E-commerce merchant sitting at a table working on a laptop surrounded by empty boxes with a floating shopping cart symbol

A sticky "Add to Cart" button in your Shopify store can make all the difference in creating a seamless shopping experience. This feature ensures that customers can easily add products to their cart without losing focus or navigating back to the main button.

Whether you prefer to use an app or dive into coding, implementing this tool is straightforward and can significantly enhance the usability of your online store. In this guide, you'll learn step-by-step methods to add the sticky "Add to Cart" button to your Shopify store and explore how it complements other features like back-in-stock notifications and custom filters.

» Take your customer experience to the next level with automated Shopify apps and solutions

Understanding the Sticky "Add to Cart" Button

The sticky "Add to Cart" button is a bar or button that stays at the top or bottom of the screen as your shopper browses your Shopify store. It remains within easy reach, so your shopper doesn't have to scroll back to the main "Add to Cart" button and break their concentration while shopping.

Why the Sticky "Add to Cart" Button Matters

Implementing a sticky "Add to Cart" button in your Shopify store can offer several benefits that improve the shopping experience and drive conversions, such as:

  • Enhances customer experience: The sticky "Add to Cart" button helps create a seamless shopping journey by working alongside customer-focused features like back-in-stock notifications and custom filters.
  • Increases online sales: By simplifying the checkout process, this feature helps turn browsing into purchasing more efficiently.
  • Reduces cart abandonment: Customers are less likely to leave without completing their purchase when adding items to their cart is quick and accessible.
  • Improves mobile experience: On smaller screens, a sticky button ensures that users can add products to their cart effortlessly, boosting engagement for mobile shoppers.
  • Customizable design: Allows you to match the button’s style to your store’s branding, creating a cohesive and professional look.

» Want to remove the "Add to Cart" button? Learn how to do it quickly and easily



How to Add the Sticky "Add to Cart" Button in Shopify

Method 1: Integrate an App

If you choose to integrate an app, it will take you less than five minutes. Simply search the app store, select the relevant tool, add it to your Shopify store, and you're good to go.

Sticky Add To Cart BOOSTER PRO is one of the top-rated apps in the Shopify App Store, with 4.9 stars out of 1,731 reviews (as of July 2024). The app offers a 14-day free trial and includes a Sticky Checkout Bar feature, which makes adding products to the cart and checking out a smooth experience for your customers.

» Keep your customers engaged and returning with our key tactics

Method 2: Code Your Own

1. Locate the Shopify “Add to Cart” Form on the Product Page

The location of the "Add to Cart" form depends on your Shopify theme. For example, the Debut theme locates it in product-template.liquid, while the Dawn theme houses it in main-product.liquid.

2. Copy the Original Code

Paste it a second time beneath the first entry. You might see two of the same "Add to Cart" buttons in your Shopify store, which is absolutely fine.

3. Add an ID Called "Sticky-Atc"

The code should look like this:

<button
 type="submit"
 name="add"
 id="sticky-atc"
 class="product-form__submit

4. Add the Code in the theme.css File

If you're using the Dawn theme, for example, you'll find the main CSS file in base.css. At the end of the base.css file, paste the following code:

#sticky-atc {
 display: block;
 position: fixed;
 bottom: 0;
 left: 0;
 z-index: 100;
 width: 100%;
 /* Add "background: #000;" to change the color of your ATC button*/
 /* Add "color: #fff;" to change the color of your ATC text*/
}

» Learn how to change text on the "Add to Cart" button in Shopify



Optimize the Buyer Journey Beyond Sticky "Add to Cart" Buttons

Having a sticky "Add to Cart" button is a great way to make it convenient for shoppers to purchase products they love. But what if you could enhance their shopping experience even further by showcasing the products they're most likely to enjoy? This is where Egnition's Bestsellers reSort software comes in handy.

With this smart product placement tool, you can create custom rules that prioritize your bestsellers within each collection. So, when a customer lands on a collection page, they'll see the products with the highest conversion rates right at the top.



Here's how Bestsellers reSort complements your sticky "Add to Cart" strategy:



» Optimize your top sellers for maximum impact. Explore the best ways to manage your bestsellers in Shopify

Find Your Perfect Fit

A sticky "Add to Cart" button is more than a convenience—it's a valuable tool that streamlines the buyer journey and encourages seamless shopping. Whether you prefer using an app or customizing it with code, implementing this feature is straightforward and impactful.

This feature works best when combined with other strategies, such as highlighting bestsellers or using custom filters. Together, these tools can create a shopping experience that keeps customers engaged, encourages them to complete their purchases, and ensures they come back.

» Go beyond sticky "Add to Cart" buttons. Discover how smarter product placement can transform your store's user experience

Don't Know what Shopify is?

Start your own online eCommerce business using Shopify platform. Shopify gives you all the tools needed to make the journey easier, faster and more profitable.

Frequent Releases

We work tirelessly to deliver more value to your business. Our roadmap is largely based on the questions you ask. We listen and we deliver as often as we can.

24/7/365 apps support

You can reach out to us via a dedicated support icon in the apps. We're always there. Or simply send us an email with your questions at support@egnition.io

Pin It on Pinterest