Home > widget-integration > PredictiveBundleController > addBundleToCart

PredictiveBundleController.addBundleToCart() method

Adds the selected bundle products to cart.

Signature:

addBundleToCart(target: HTMLElement, blockType: string): Promise<void>;

Parameters

Parameter

Type

Description

target

HTMLElement

Add-to-cart trigger element.

blockType

string

Source block type.

Returns:

Promise<void>