Skip to content

Bundle Product Methods

SmartCart.childBundleTitlestring

Remove extra word from bundle option title

SmartCart.getBundleOptionImagestring

Get the bundle option image

SmartCart.hideBundleOptionsboolean

Check if bundle options should be hidden

SmartCart.isBundleVisibleboolean

Check whether the item is the currently expanded bundle

SmartCart.itemBundleLengthnumber

Check if item is bundle and has more than 1 option (excluding default option)

SmartCart.itemIsBundleboolean

Check whether item is a bundle product

SmartCart.toggleActiveBundlevoid

Toggle the active product bundle

SmartCart.childBundleTitlestring

Remove extra word from bundle option title

Returns: string - bundle option title

Param Type Description
option object bundle option

SmartCart.getBundleOptionImagestring

Get the bundle option image

Returns: string - Image URL

Param Type Description
product object Product object
currentOption object Current option
currentOptionIndex number Index of the current option

SmartCart.hideBundleOptionsboolean

Check if bundle options should be hidden

Returns: boolean - true if bundle options should be hidden

Param Type Description
item object cart line item

SmartCart.isBundleVisibleboolean

Check whether the item is the currently expanded bundle

Returns: boolean - true if the item is the currently expanded bundle

Param Type Description
item object line item

SmartCart.itemBundleLengthnumber

Check if item is bundle and has more than 1 option (excluding default option)

Returns: number - number of non-default options

Param Type Description
item object line item

SmartCart.itemIsBundleboolean

Check whether item is a bundle product

Returns: boolean - true if item is bundle

Param Type Description
item object line item

SmartCart.toggleActiveBundlevoid

Toggle the active product bundle

Param Type Description
item object line item