Add to cart empty and need to re-load or re-click to have it

Add to cart empty and need to re-load or re-click to have it

daphnepungartni
New Member
6 0 0

Hi, 

 

when I click a product to be added to cart, the cart pops up and says that it is empty. Only when I refresh the page or re-click on the product does it show that I have something in it. 

Replies 7 (7)
daphnepungartni
New Member
6 0 0

Thank you! So I have tried it on my phone, ipad, and laptop and it is all the same! I have also tried on some friends devices as well. 

 

I believe the Javascript would be the first place to look at. Is there a step by step on how to look more into this? 

 

Also, we had thought our domain name was automatically purchased but it was not. So we had to re-set everything / re-pay for our name and that definitely set off some things. I wonder if this could also be a reason why ? 

pawankumar
Shopify Partner
755 111 128

Hi @daphnepungartni 
I hope you are doing well.
It looks like your Javascript is not working or it may be case you are not updating cart content after successful response from cart add request.
Can you please share store and product URL where issue is occurring ?
Please provide password as well if store is password protected.
It will help me to look into the problem deeper.
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
daphnepungartni
New Member
6 0 0
pawankumar
Shopify Partner
755 111 128

It looks somewhat hard to debug by looking at theme code. There may be issue in your theme.js
On possible reason that my cause is this line " _this36._replaceContent(html)" is commented in theme.js, you can try removing the "//" before this line. This may solve the issue, but if it still doesn't resolve this, then it will require deeper look into the code
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
daphnepungartni
New Member
6 0 0

Hi! I have been trying to find this line but cant see it anywhere!

daphnepungartni
New Member
6 0 0

For now I was able to fix the problem by changing our websites cart system. We had it as "drawer" and I changed it to "page" in our theme setting. This has at least fixed the problem. It would be good to know why "drawer" is not working

daphnepungartni
New Member
6 0 0

also it is on all products!