API custom events
We do not support code customizations. This guide offers a basic reference for developers. Always test code changes on a duplicated, unpublished version of your theme. For assistance, we recommend finding a professional developer through Shopify Experts.
We built an event-based API so developers can easily hook into Flash Cart and add their own functionality. Events are an easy mechanism for apps to talk to each other. Below you’ll find trigger events to make Flash Cart take an action, and events emitted by Flash Cart that your app can receive.
Trigger events
These events can be emitted programmatically to trigger Flash Cart to take an action.
Here’s an example call that uses the Refresh cart event.
Close cart
Open cart
Refresh cart
Rebind actions on cart
Emitted events
These events are emitted by Flash Cart when something occurs.
Cart initialized
Cart updated
Cart opening
Cart opened
Cart closing
Cart closed
Product added to cart
Product quantity updated
Upsell data updated
Last updated