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

Ajax cart callback fires before cart is actually loaded #244

Closed
cshold opened this issue Sep 24, 2014 · 0 comments · Fixed by #338
Closed

Ajax cart callback fires before cart is actually loaded #244

cshold opened this issue Sep 24, 2014 · 0 comments · Fixed by #338
Assignees

Comments

@cshold
Copy link
Contributor

cshold commented Sep 24, 2014

The callback function when toggling the cart is returned before the cart is actually loaded in the DOM. That means targeting any elements with jQuery can't happen immediately.

Fix will be to run the callback function only after .load of the contents completes.

Current solution, use a setTimeout of 1 second in your onToggleCallback to wait for the cart contents to load.

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

Successfully merging a pull request may close this issue.

1 participant