Re: Add to cart button stuck on loading

Why does my add to cart button keep loading?

miniserv
Shopify Partner
7 0 0

Hi im having an issue with my products just loading when adding to cart.
It so happens that the first time i add something to cart it works perfectly - and if i just click add to cart again directly after it just loads - and if i change product, and try to add to cart it will add them to cart, but if i add again directly after it gets stuck on loading again. - this is an issue on both mobile, and dekstop - and i've tried on many live theme and previous variations - and it seem to do it on everything - i just dont remember it being an issue before now.

www.miniservietten.dk

Replies 4 (4)

miniserv
Shopify Partner
7 0 0

Screenshot 2024-03-19 at 10.14.58.png

miniserv
Shopify Partner
7 0 0

Hi, Yes that makes sense - but how do i find out what part of the code could cause this issue - im not really much of a coder - so i dont even know where to start.

Ihor-Sh
Shopify Partner
79 11 17

Hi @miniserv it's a bit complex issue.
To fix it theme core empire.js code review needed on dev environment.
Somehow after first add_to_cart request next ajax request fails and didn't give ability to customer to add same product to cart again (only cookie cleanup helps). issue looks very weird and urgent i think.
I can resolve this, but i will need to connect to your store. If you're interested in this - feel free to continue discussion in private channel.

IhorSh_0-1710841686183.png

 

Shopify troubleshootibility 😉
If you're satisfied with reply - don't forget to like it.
If you more than satisfied - mark it as solution 😉
You can find me here.
miniserv
Shopify Partner
7 0 0

Hi Ihor - sounds interesting, id love your help - ive sent you a private message