In the first versions of Prestashop 1.5.* there is a bug which is reproduced in old versions for all browsers as well as in all Internet Explorer versions. This bug does not allow to save cookies when adding a product to the cart if the Block Cart module is enabled, thus your shopping cart remains empty. To fix this you need to modify the js-file /modules/blockcart/ajax-cart.js:
- Comment out the following condition in the method аjаxCаrt.add( ):
12//if ($('#cart_block #cart_block_list').hasClass('collapsed'))// this.expand(); - Place an аjаx-request in the method аjаxCаrt.expand() before slideUp is invoked.
- Then set the same аjаx request for a synchronous execution, i.e.set the async option as false, instead of true.
After that clear your browser cookies.
Partner With Us
Looking for a partner to grow your business? We are the right company to bring your webstore to success.
Talk to Igor
lordbdp,
The problem is that some of the functions in the object ajaxCart send parallel ajax-requests and that causes problems with cookies in IE old versions. This method of organizes these requests sequentially.
Same, I don’t anderstand the steps 2 & 3… sry.
Hi Denis, I just read your article of how to fix the “Ajax cart bug” in Internet Explorer, I’m developing a prestashop-based store and have exactly the same problem that you described on your post, can you please show what you mean in steps 2 and 3. I think it will be apreciated by all of us!! Thanks!!!
Hi Denis,
Thanks for the explanation. Could I ask you for a bit more detail as I am trying to fix this problem and I do not fully understand your solution. Could you explain steps 2 and 3 for me in a bit more detail please? What exactly do you mean Place an аjаx-request in the method аjаxCаrt.expand() before slideUp is invoked? I am not much of a programmer but I need to solve this annoying problem in IE. Thanks again.