Events
Overview
Events provide the ability to react based on certain actions that occur during the lifecycle of a basket interaction. This could be used for analytics, logging, or other custom actions.
Available Events
- basketCreated
- basketDataChanged
- basketObjectsChanged
- basketObjectChanged
- orderInitialized
- orderCompleted
basketCreated
declo.config.ts
.events({
basketCreated: (event) => {
// ...
}
})
basketDataChanged
declo.config.ts
.events({
basketDataChanged: (event) => {
// ...
}
})
basketObjectsChanged
declo.config.ts
.events({
basketObjectsChanged: (event) => {
// ...
}
})
basketObjectChanged
declo.config.ts
.events({
basketObjectChanged: (event) => {
// ...
}
})
orderInitialized
declo.config.ts
.events({
orderInitialized: (event) => {
// ...
}
})
orderCompleted
declo.config.ts
.events({
orderCompleted: (event) => {
// ...
}
})