Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Cart drawer not updating on IE11 #599

Closed
onotype opened this issue Nov 25, 2016 · 1 comment
Closed

Cart drawer not updating on IE11 #599

onotype opened this issue Nov 25, 2016 · 1 comment

Comments

@onotype
Copy link

onotype commented Nov 25, 2016

http://www.blooms.com.hk

I've been at it for hours but I can't seem to figure out what's wrong with my ajax cart. Console isn't showing anything related to it too. Can anyone point me to the right direction?

Everything seems to be working alright in Firefox or Chrome but it's IE that becomes funky. Whenever I add a product, the drawer opens but items aren't getting updated. If there's no product in the cart, that means the drawer will stay empty. Even after reload.

@onotype
Copy link
Author

onotype commented Nov 25, 2016

Seem to have fixed this one. Problem was IE was caching ajax requests, I think? It doesn't take any newly added products until I close the browser and open it again. Likewise, removed items stay in the drawer even if the cart is already empty unless I close and open a new window.

Fixed it by adding
$.ajaxSetup({ cache: false });
before the ajax cart init.

I'm shooting at the dark here so I don't know if this is proper, but it's currently working so it's cool now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant