Buy More Save More Methods

SmartCart.adjustBMSMQuantityvoid

Adjusts the BMSM quantity for the provided item and tier.

SmartCart.bMSMFinalTierNotReachedboolean

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

SmartCart.buyMoreSaveMoreDynamicTextstring | void

Gets the dynamic BMSM discount text for the provided item.

SmartCart.getBMSMButtonTextstring

Gets the BMSM discount button text for the provided tier.

SmartCart.getBMSMTiersArray

Gets the BMSM tiers.

SmartCart.hasBMSMButtonsboolean

Checks if the BMSM discount is displayed as buttons.

SmartCart.itemHasBMSMboolean | void

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

SmartCart.adjustBMSMQuantityvoid

Adjusts the BMSM quantity for the provided item and tier.

ParamTypeDescription
itemobjectThe item for which to adjust the BMSM quantity.
tierobjectThe 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.

ParamTypeDescription
itemobjectThe 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.

ParamTypeDescription
itemobjectThe 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.

ParamTypeDescription
tierobjectThe 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.

ParamTypeDescription
itemobjectThe item to check for BMSM discount.