Skip to main content

Interface: BeforeAddToCartEventPayload

Payload for the mimeeq-before-add-to-cart event.

Dispatched synchronously when the basket action starts, before configuration validation, image generation, short-code generation, or the final cart event. The event is cancelable: call event.preventDefault() first, then call continueAddToCart() when custom asynchronous work is complete to resume the normal add-to-cart flow.

Properties

continueAddToCart()

continueAddToCart: () => Promise<false | void>

Resume the normal add-to-cart flow using the latest configurator state.

Returns

Promise<false | void>