I have an issue with my add to cart button not working with the cart icon in the header of my shopify store. The cart icon shows an ajax drawer cart when products are selected from bundle but now ADD TO CART button does not work.
Topic summary
Add to Cart button stops working while the header cart icon still opens an AJAX drawer cart after products are selected from a bundle. The user reports that the cart icon functions (shows a slide‑out/drawer cart updated via AJAX) but the primary Add to Cart action does not trigger.
Scope and context:
- Shopify theme with customizations (CSS/custom code) likely involved.
- Issue appears tied to bundle product selection and cart interactions.
Impact:
- Shoppers can open the cart drawer via the header icon but cannot add items via the Add to Cart button, blocking purchase flow.
Status:
- No code samples, theme details, error logs, or recent changes were provided.
- No fixes or workarounds have been shared; the thread is unresolved.
Unanswered key questions:
- Which theme and version are in use?
- What recent custom code or app changes (bundle/cart apps) were made?
- Are there console/network errors or disabled event handlers affecting the Add to Cart button?
This sounds like a JavaScript conflict, likely between your bundle app’s code and your theme’s default or custom AJAX cart implementation.
First, open your browser’s developer console (usually F12 or Cmd+Option+J) and check for any JavaScript errors when you click the ‘Add to Cart’ button. That’s often the quickest way to pinpoint the problem.
If you’re using a bundle app, it might be trying to override the standard add-to-cart form submission with its own logic, or it’s not correctly triggering your theme’s existing AJAX cart function. Check the app’s settings or documentation for any specific instructions on theme integration or known conflicts.
Also, verify if the ‘Add to Cart’ button works correctly for a regular product (not part of a bundle). If it does, the issue is almost certainly how the bundle app is interacting with the product form or the AJAX cart script. You might need to adjust the selectors in your custom AJAX cart JavaScript to specifically target the bundle product form, or ensure the bundle app’s JS isn’t preventing the default form submission without providing its own AJAX handler. Look for `event.preventDefault()` calls that might be stopping the form but not replacing it with an AJAX request.
P.S. I’m building a gamified discount app called Game Gophers. Looking for beta testers if you’re interested.
Thank you for your reply
Hello, can you please share your store url so that I can take a look and provide you the solution code.
I just checked the issue. When I click on the Add to Cart button, the cart drawer does not open. When I click on the cart icon, the cart drawer opens, but the products are not displayed. After refreshing the page and opening the cart drawer again, the products appear.
To fix this, we need to check the AJAX cart drawer code in the theme and ensure that the cart drawer opens via AJAX immediately after clicking Add to Cart.
Yes I just need it fixed
How do you check the code and make it work perfectly well?
Okay, please send me the store access. I will check it and update you properly.
I will send you colab code only. That’s all?
Yes, please email me the collaborator code.
Collaboration code sent. Pls I’d love to hear it’s fixed soon. That’s so much.
I await responses from you soon Youssef5he
- The items are actually getting added to the cart, so this is just a display issue.
- I see this error in the browser console: `[Kaching Bundles] Add to cart button not found. Please add a selector to the settings page or contact support.`
It seems you’re using the Replo page builder, so maybe the app doesn’t know how to find the add to cart button on your page. You might want to try this selector: [data-replo-add-product-variant-to-cart].
Let me know if that fixes it.
I have sent the request. Please accept it.
Where do I do accept because shopify did not give me notification of your request. Also, can you pls share your whatsapp number? It’s easier to discuss that way.
Access granted via your colab code request.
![]()
+918516919310
