How can I resolve the add to cart button issue on my Brooklyn theme?

Topic summary

Add to cart on the Brooklyn theme’s collection page is not working. A JavaScript error in custom code is identified as the likely cause, with a screenshot (image) central to diagnosing the issue.

  • Guidance: The theme needs debugging; if you’re not a developer, consider hiring one. Clarification was requested on whether a “quick buy” (add-to-cart directly from collection grid) was added.
  • Requests: The store owner asks how to fix it and how to add items to a side mini basket (cart drawer) instead of the full cart page.
  • Proposed solution: Use AJAX (asynchronous requests from the browser) to submit products to the cart, then trigger/update the side basket/cart drawer code so it reflects the new item without reloading.
  • Help offered: A contributor offered hands-on assistance, requesting admin and theme file access.

Outcome: No concrete fix provided in-thread. Action items are to debug the custom JavaScript error and implement an AJAX-based add-to-cart that updates the side mini basket. Status: unresolved/ongoing.

Summarized with AI on February 9. AI used: gpt-5.

Hello,

i search some help plz !

My add to cart button is not working on collection page (theme Brooklyn)

https://screencare.fr/collections/balle-ergonomique

How can I fix this ?

Thks

Hi @raf7700

there is issue of your javascirpt. pls check your custom javascirpt code

Kani_0-1662005858328.png

1 Like

Thks for the fast answer, you know how to fix it myself plz ?

Sorry it need to debug on your theme

You should hire someone to do it if you are not a developer. Did you add quick buy by yourself?

@raf7700
I can help you for this, Need your store admin details and files access then I can check this.

thank you for your answer how to add it to the mini basket on the side? not on the cart page

thank you for your answer how to add it to the mini basket on the side? not on the cart page

@raf7700

for this need to submit product using ajax and then need to hit your basket code.

For this need to hire a shopify developer. I can help on this