How can I fix the cart error message on my ecommerce site?

I am hoping someone can help me figure out how to fix my problem. I have been testing my site to make sure everything works properly before I launch. I was trying to figure out how to add a free gift with purchase so I tried a couple apps that were suggested on here but none of them seemed to give me what I wanted so I removed the apps(Active Cart, Bold Sales Motivator and another one that I am forgetting). Now when I go to add a product to my cart and then try and remove it or change the quantity it gives me an error message that says ā€œThere was an error while updating your cart. Please try again.ā€ I am hoping someone has figured out how to fix this. Any help is appreciated.

Thank you!

Hi there @Blispy !

Don here from Shopify.

If you have added apps like this to your store and notice some issues like this after removing them, it is quite likely that these apps added some code to your store’s theme that would need to be removed.

You can try reverting any changes made to the code of .liquid files by these apps in the Online store > Themes > Actions > Edit code menu.

Near the top of any file you have edited there you will see a drop-down titled ā€˜Older versions’ that you can click on to roll back any changes made to that file as shown:

You can also get support with this by contacting the developers of the third-party apps in question, who will be able to help out with finding and removing this code for you.

I had a look for the Active Cart app you mentioned as well as the Bold Sales Motivator one if you want to reach out to their developers for support, you can use the contact details listed there on the app store pages.

This should help you to remove any leftover code and resolve the issue you mentioned here.

Are you still getting set up with your Shopify store or have you been selling already?

Regards,

Don

2 Likes

Hi @Don ,

Thank you so much for your quick reply. I did what you suggested and switched the code back to the older version and that fixed the problem. Thank you so much! I have not been selling yet. I am just checking to make sure every aspect of my website is functioning properly before I launch my site. I hope to be launching this next week. Thanks again for your help!

Lisa @Blispy

www.blispy.com

1 Like

This thread is a bit old now but I thought I’d share something I learned.

I am currently developing an app for a customer and it involves having to calculate a price based on certain criteria and then create a variation of that item with the calculated price via API request from the frontend of the store and then add that newly created item to the cart.

After the item was pushed to the cart I experienced the same issue as you. If I changed the item quantity or deleted an item from the cart, it would display an error saying there was some error in the cart. I would then have to refresh the page and the changes would appear.

My solution ended up being to just comment out that error message in the cart-template.liquid file(I’m using the debut template).


                {{ 'general.accessibility.error' | t }} 
                {% include 'icon-error' %}
                
              

After I commented that out, the cart would reload fine if I changed quantities or deleted items. Maybe not the best solution but could work in a pinch if necessary.

1 Like

UPDATE ON MY COMMENT ABOVE

This actually did not work for me and I wouldn’t recommend it. I followed the instructions and reset my cart page to its original state before adding any apps and it works like a charm now!

Turns out that a Bold products app that I installed and uninstalled was messing with things.

If you’re on Dawn 2.0, here’s the solution - look for main-cart-footer.liquid
locate

replace with

HI can you please assist me

Hey all,
Just wanted to share a quick fix I found for missing error messages on Shopify cart pages. I had the same issue where customers couldn’t see error messages when they tried to add too many items to their cart. Turns out, a simple JavaScript snippet can intercept API responses and display the error messages properly. I added it to my cart template file and it worked like a charm. Check out my blog for the details: https://www.dashcheckout.io/fixing-missing-error-messages-on-shopify-cart-pages/. Let me know if you have any questions!

Best,
Zayd