Skip to content

Buy More Save More Methods

SmartCart.adjustBMSMQuantityvoid

Adjusts the BMSM quantity for the provided item and tier.

Param Type Description
item object The item for which to adjust the BMSM quantity.
tier object The BMSM tier for which to adjust the quantity.

SmartCart.bMSMFinalTierNotReachedboolean

Checks if the final BMSM tier has been reached for the provided item.

Returns: boolean - True if the final BMSM tier has not been reached, false otherwise.

Param Type Description
item object The item for which to check if the final BMSM tier has been reached.

SmartCart.buyMoreSaveMoreDynamicTextstring | void

Gets the dynamic BMSM discount text for the provided item.

Returns: string | void - The dynamic BMSM discount text for the provided item.

Param Type Description
item object The item for which to get the dynamic BMSM discount text.

SmartCart.getBMSMButtonTextstring

Gets the BMSM discount button text for the provided tier.

Returns: string - The BMSM discount button text for the provided tier.

Param Type Description
tier object The BMSM tier for which to get the button text.

SmartCart.getBMSMTiersArray

Gets the BMSM tiers.

Returns: Array - An array of BMSM discount tiers.

SmartCart.hasBMSMButtonsboolean

Checks if the BMSM discount is displayed as buttons.

Returns: boolean - True if the BMSM discount is displayed as buttons, false otherwise.

SmartCart.itemHasBMSMboolean | void

Checks if the provided item has Buy More Save More (BMSM) discount enabled.

Returns: boolean | void - True if the item has BMSM discount enabled, false otherwise.

Param Type Description
item object The item to check for BMSM discount.
See something that needs updating? Suggest an edit