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

ParamTypeDescription
optionobjectbundle option

SmartCart.getBundleOptionImagestring

Get the bundle option image

Returns: string - Image URL

ParamTypeDescription
productobjectProduct object
currentOptionobjectCurrent option
currentOptionIndexnumberIndex of the current option

SmartCart.hideBundleOptionsboolean

Check if bundle options should be hidden

Returns: boolean - true if bundle options should be hidden

ParamTypeDescription
itemobjectcart line item

SmartCart.isBundleVisibleboolean

Check whether the item is the currently expanded bundle

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

ParamTypeDescription
itemobjectline item

SmartCart.itemBundleLengthnumber

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

Returns: number - number of non-default options

ParamTypeDescription
itemobjectline item

SmartCart.itemIsBundleboolean

Check whether item is a bundle product

Returns: boolean - true if item is bundle

ParamTypeDescription
itemobjectline item

SmartCart.toggleActiveBundlevoid

Toggle the active product bundle

ParamTypeDescription
itemobjectline item