An event that is triggered when a discount rule is updated.
The onDiscountRuleUpdated()
event handler runs when a discount rule is updated. The received DiscountRuleUpdated
object contains information about the discount rule that was updated.
Note: Backend events don't work when previewing your site.
function wixEcomDiscounts_onDiscountRuleUpdated(
event: DiscountRuleUpdated,
): void;
Information about the discount rule that was updated.
export function wixEcomDiscounts_onDiscountRuleUpdated(event) {
const eventId = event.metadata.id;
const entityId = event.entity._id;
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
An event that triggers when an abandoned checkout is recovered (the customer completes the checkout).
The onAbandonedCheckoutCreated()
event handler runs when an abandoned checkout is recovered. The AbandonedCheckoutRecoveredEvent
object contains information about the abandoned checkout that was recovered, and the event metadata.
Note: Backend events don't work when previewing your site.
Information about the abandoned checkout that was recovered.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a back in stock notification request is created.
The onBackInStockNotificationRequestCreated()
event handler runs when a back in stock notification request is created. The received BackInStockNotificationRequestCreated
object contains information about the back in stock notification request that was created and event metadata.
Note: Backend events don't work when previewing your site.
Information about the back in stock notification request that was created.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a back in stock notification request is deleted.
The onBackInStockNotificationRequestDeleted()
event handler runs when a back in stock notification request is deleted. The received BackInStockNotificationRequestDeleted
object contains event metadata.
Note: Backend events don't work when previewing your site.
Information about the back in stock notification request that was deleted.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a back in stock notification request is updated.
The onBackInStockNotificationRequestUpdated()
event handler runs when a back in stock notification request is updated. The received BackInStockNotificationRequestUpdated
object contains information about the back in stock notification request that was updated and event metadata.
Note: Backend events don't work when previewing your site.
Information about the back in stock notification request that was updated.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
An event that triggers when a new cart is created.
The onCartCreated()
event handler runs when a new cart is created. The received CartCreated
object contains information about the cart that was created and event metadata.
Note: Backend events don't work when previewing your site.
Information about the cart that was created and event metadata.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.