Free Shopify sticky add to cart section
A bar with the product photo, name, price and Add to cart that slides up from the bottom once a shopper scrolls past your theme’s own button.

- Price
- Free, no monthly fee
- Works on
- Product pages
- In the theme editor
- Pixel Caption Sticky cart
- Made by
- The Pixel Caption growth team
The problem it solves
On a phone, Add to cart sits near the top of the product page. By the time a shopper has read the description, the reviews and the size details, the button is several screens up, and some never scroll back.
Many sticky cart apps add a button of their own that skips your variant picker, cart drawer or bundle app. The bar then adds the wrong size, or opens a cart page your theme doesn’t use.
What it does
Keeps the price and Add to cart in reach on phones once shoppers scroll past your button.
Shows up when it’s needed
The bar stays hidden while your own Add to cart is on screen. Once the shopper scrolls past it, the bar slides up from the bottom, and it slides away when they scroll back.
Presses your theme’s button
Tapping the bar presses your theme’s own Add to cart, so the chosen size and colour, your cart drawer and any apps on that button keep working. Without one, it adds the variant and opens the cart.
Keeps up with the variant
When the shopper picks another variant, the price on the bar changes with it, and the button switches to your Sold out text when that variant is out of stock.
Phones only, or every screen
Show it on phones and computers, or on phones only. Pick the bar and button colours and the rounding to match your theme. The slide is switched off for shoppers who turn off motion.
Settings in the theme editor
Every setting below is in the section’s code, pixelcaption-sticky-add-to-cart.liquid. Change any of them in Customize, with no code.
| Setting | Type | Default |
|---|---|---|
| Show on | Choice | Phones and computers |
| Button text | Text | Add to cart |
| Sold out text | Text | Sold out |
| Show product photo | Tick box | On |
| Bar background | Colour | #ffffff |
| Bar text | Colour | #121212 |
| Button colour | Colour | #121212 |
| Button text colour | Colour | #ffffff |
| Button rounding | Slider, 0 to 24 px | 8 px |
How to install
About five minutes in your Shopify admin, with no coding. These are the same steps as the guide in the .zip.
Download the .zip
Tap Download below. The .zip holds the section file, sections/pixelcaption-sticky-add-to-cart.liquid, and an install guide with a button that copies the code.
Make a backup copy
In Shopify admin go to Online Store, then Themes. Click the three dots next to your live theme and choose Duplicate, so you can publish the copy if anything goes wrong.
Create the section file
Click the three dots again and choose Edit code. Under the Sections folder click “Add a new section”, name it pixelcaption-sticky-add-to-cart and pick Liquid if Shopify asks.
Paste the code
Select everything in the new file and delete it. Paste the code from the section file in the .zip, then click Save.
Add it to your page
Back in Themes, click Customize and open product. Click “Add section”, pick Pixel Caption Sticky cart and click Save.
Set it up
Choose “Phones only” or “Phones and computers”. Pick the button colours to match your theme.
Good to know
- The bar presses your theme’s own button, so size and colour choices, cart drawers and apps keep working.
Related components
Other free sections that work well next to this one.
- Pincode delivery checkerShoppers enter a pincode and see the delivery date and COD option right under Add to cart.See the section

- Prepaid nudgeA quiet line near the price that shows the saving for paying by UPI, so fewer orders go COD.See the section

- WhatsApp chat buttonA floating button that opens a WhatsApp chat with a ready message naming the product.See the section

Get the sticky add to cart
One short form and the .zip is yours, with install notes. It comes by email too.
Sticky add to cart
- The section file and install notes
- Works in your theme editor, no app
- No monthly fee