Variable OutMessageAddedToCartConst

OutMessageAddedToCart: MessageDefinition<{
    linePosition: number;
    success: boolean;
}> = ...

The WidgetManager does handle this event under the hood via the addToCart handler in the constructor. Outgoing message from the iframe to notify the WidgetManager that items have been added to the cart.

Type declaration

  • linePosition: number

    The line position of the product, should be the same as the line position of the InMessageAddToCart event.

  • success: boolean

    The success status of the add to cart operation