Ecommerce cart doesn´t function properly

Permalink
Hello everybody,

when I add a product to cart nothing happens visually. The number next to the cart doesn´t change and most importantly, the pop up overlay window doesn´t show. Upon reload of the page, the number next to the cart is updated and when you actually go to cart page, the product is there so it basically works in this respect. Does anyone know how to enable cart overlay or at least show the number of items in the cart wwithout refreshing the page?

Thank you in advance!

 
nkennel replied on at Permalink Reply
nkennel
This how-to shows how to disable the advanced cart, but if you haven't overridden packages/core_commerce/js/ccm.core.commerce.cart.js, then this probably isn't affecting you.

http://www.concrete5.org/documentation/how-tos/developers/disable-t...

As suggested in the How-to, advanced cart is turned off for versions of Internet Explorer earlier than 7.

Also, I think the advanced cart uses JavaScript and Ajax, so you can make sure JavaScript is turned on.

But in my experience, similar issues I had with the advanced cart were related to my browser cookies. I had moved the site to a different directory, replacing an older version of the site and this messed things up until I deleted cookies. Try deleting any cookies related that particular site.
easynowbaby replied on at Permalink Reply
Hi nkennel,

thank you for your answer but I haven´t modified the javascrpit file mentioned in your link and deleting cookies didn´t work either. At first I was being at least redirected to cart when I added an item to cart. Getting this funcionality back would be better than nothing. I was thinking about reinstalling ecommerce, would that help?

Thank you!
nkennel replied on at Permalink Reply
nkennel
I have disabled the advanced cart on my site because I didn't like the way it looks on mobile. If you disable it using the how-to I mentioned, you are indeed redirected to the cart. This could at least be a temporary option for you.

The down side is if you have any product choices that are required (like a t-shirt with color choices), you need to add your own javascript validation or the user will be taken to the cart page, only to see an error like "color is a required field," and they'll have to go back to the other page, pick their choice, and add to cart again, which is not as nice of an experience as a javascript pop-up, for instance.
easynowbaby replied on at Permalink Reply
Thanks again! So I tried to disable the cart pop up as you said with no result. Then I noticed there were some errors involving javascript files, so I temporarily deleted my jquery plugins and now I get redirected to cart, at least. When I now try to enable the cart pop up again, it still doesn´t work and this is what the concole in chrome says:

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Uncaught TypeError: undefined is not a function ccm.core.commerce.cart.js:43
(anonymous function) ccm.core.commerce.cart.js:43
ccm_parseJSON ccm.base.js:11
$.ajaxForm.success ccm.core.commerce.cart.js:39
options.success jquery.form.js:149
o jquery.js:2
p.fireWith jquery.js:2
w jquery.js:4
d jquery.js:4

Any ideas would be appreciated, cheers!
easynowbaby replied on at Permalink Reply
I found out the problem was in including my own jquery file. Once I deleted it, my plugins still work fine and I get redirected to cart. Still no pop up cart but this should be enough I suppose. Thanks for your help!