Cart quantity not updating

Shopify Partner
53 0 0

Hello,

I have a problem in the cart page of my store. When I change the quantity number and then click update cart my page refreshes the number goes back to it's original value, I am aware this will have to be done using Shopify Ajax? Can anyone help me fix this as I need both the line item quantity and cart price to update with the update cart button. All help appreciated. 

 

NOTE: I also have a cart drawer on my site that updates automatically when the quantity is changed? and this works fine?

 

My store URL is: https://d6mhf9xxxt9ihv7h-13398802489.shopifypreview.com

 

Thanks!

0 Likes
Highlighted

Hello 

I have checked your site.

Its looking that user can't checkout without login. 

So, when cart update it will redirect to password page.

Check setting that guest user can proceed to checkout.

Have you installed any app.

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes
Highlighted
Shopify Partner
53 0 0
Hello. Thanks for your reply.

Customer accounts are optional on checkout, I have just double checked. I currently don't use any app.
0 Likes
Highlighted
Shopify Partner
53 0 0

*bump*

0 Likes
Highlighted
New Member
1 0 0

I've noticed this happen when I'm previewing theme changes - when I update cart, the POST to /cart comes back with an HTTP 302 redirecting me to my main store (shop.mydomain.com), not my preview store (12354.shopifypreview.com).  So the browser refreshes  and shows my what my last cart was on the main store, not what it should be on the preview store.

 

Annoyingly, it looks like it does actually update my cart contents on the preview store, so if I hit back, I get the correct counts.

 

Makes it tough to write automated tests with confidence, which makes it tough to deploy theme changes with confidence.

0 Likes