Hi everyone
I’m Receiving an error message when I try to add an item to cart on my store from either my Facebook ad or from my website direct me on my iPhone.
‘There was an error while trying to update your cart. please try again later.’
my URL is www.theadventuremart.com
thanks for any help.
Hi there,
The item is actually being added to cart successfully, however there is another error happening which triggers the fail message you are seeing:
Once added to cart, the code tries to fire the _setupCartPopup function, however this fails. I believe this is because the header/cart have been removed. This causes the failure and resulting message. This function is most likely for opening some kind of slide out cart that would show the contents of the cart after a successful cart update.
If removing the header/popup cart was intentional, you could try commenting out by going to line 8265 of theme.js, and putting // before the “code self._setupCartPopup(json);” so it would look like:
// self._setupCartPopup(json);
If not you’ll need to find and restore the header/cart popup code for this to work properly.
thank you. This wasn’t intentional and not sure how it happened. Do you know how I add the header code back?
move googled so much today and can’t find a solution. I can’t even roll back on codes I’ve added over past few days. They don’t have history.
thanks
Megan
WOW - I have just restored to a theme from Thursday morning and it’s all working again. 
thanks for your help!