donation icon indicating copy to clipboard operation
donation copied to clipboard

Product not getting added to cart

Open krisrobinson opened this issue 7 years ago • 6 comments

Everything seems to be working fine, but then clicking on the donation options (while it does refresh the cart) nothing is added to the cart, the cart page simply refreshes. Any ideas?

krisrobinson avatar Aug 18 '17 20:08 krisrobinson

did you ever figure out how to fix this? same issue here :(

hemphop avatar Dec 07 '18 16:12 hemphop

Hello, I've someone figure out how to resolve the problem ? I'm having the same issue and I haven't been able to debug the code. :/ Thanks

Abbab-sys avatar Jun 19 '19 02:06 Abbab-sys

Hey, I had a similar issue with this snippet, but in my case, the cart wouldn't update at all.

In my case, using the Debut theme, I needed to add

{{ '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js' | script_tag }} {{ 'api.jquery.js' | shopify_asset_url | script_tag }}

Somewhere in the donations.liquid snippet for the theme to load jQuery properly, so the script would run.

Hope this helps!

rmykolas avatar Apr 03 '20 07:04 rmykolas

Hello, I've managed to correct the problem but I don't even remember how since time has past. Thanks for you response !

Abbab-sys avatar Apr 03 '20 14:04 Abbab-sys

I have this same issue but the product will not add to the cart in from the first radio box, so I have had to add $0 to the tip menu (https://take.ms/hvdHX). Does anyone know how to fix this? I am using the debut theme as well. I added the ajax code as mentioned above (https://take.ms/L5A5x).

Thanks

mtauaese avatar Apr 24 '20 17:04 mtauaese

Thank you rmykolas this worked for me using Dawn V11. I put it just before the first script in donation.liquid Donations liquid placement

neuickbailey avatar Nov 28 '23 17:11 neuickbailey