“Add to Cart” Button adding 2 Items instead of 1

Hi, every time I press the add to cart button, 2 items populate instead of 1. I’m not savvy with code, can someone please assist me with this issue?

1 Like

It’s hard to suggest any fixes without seeing the problem.
Share a link to your store and preview password (if set).

1 Like

Hi @atelieressence

Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.

Best regards,
Devcoder :laptop:

1 Like

Hi atelieressence!

This is a very common (but frustrating) bug. When clicking “Add to Cart” adds two items instead of one, it usually means that a script on your store is firing the ‘Add to Cart’ action twice simultaneously.

Here are the 3 most common culprits and how to test for them:

1. A Leftover App Script (Double Event Binding)
If you recently uninstalled an upsell, bundling, or sticky-cart app, it might have left some JavaScript in your theme.liquid file. The native theme tries to add the item to the cart, and the leftover app script also tries to add it at the exact same millisecond.

  • How to test: Right-click anywhere on your product page, select Inspect, and go to the Network tab. Clear the log, then click “Add to Cart.” If you see two separate requests going to /cart/add.js or /cart/add, you have a rogue script double-firing.

2. Duplicate Hidden Quantity Inputs
Sometimes theme customizations result in two quantity fields existing inside the Add to Cart <form> (one visible, one hidden). When the form submits, Shopify adds them together (1 + 1 = 2).

  • How to test: Right-click your Add to Cart button and select Inspect. Look at the HTML code directly above it. Do you see more than one <input name="quantity" ...>? If so, the duplicate needs to be removed from your main-product.liquid or buy-buttons.liquid snippet.

3. The Theme Test
To isolate whether this is an app issue or a theme code issue, go to Online Store > Themes, scroll down to the Theme Library, and add a fresh copy of the free “Dawn” theme. Click Preview on that fresh theme and try adding a product to the cart.

  • If it adds 1 item: The issue is hardcoded inside your current live theme.

  • If it adds 2 items: The issue is a third-party app injecting code globally into your store.

If you can reply with your store URL, I’d be happy to open up the developer tools and tell you exactly which script or line of code is causing the double-fire so you can get it removed!

1 Like

hi im resending the link to my url because the previous one was flagged https://essenceatelier.world/

2 Likes

Frankly, I’d rather recommend getting another theme.

There are 2 JS files which handle submitting to cart in your theme.
This already looks suspicious.
Given that there is a bunch of other problems (like showing Cart drawer), console errors…

is it possible for this issue to be fixed? this theme has specific features that i plan on using that i cant find anywhere else.

also do you think if i reinstall the theme, the issues could resolve?

1 Like