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

Ajax cart callback fires before cart is actually loaded #244

@cshold

Description

@cshold

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions