- SmartCart.adjustBMSMQuantity ⇒
void
Adjusts the BMSM quantity for the provided item and tier.
- SmartCart.bMSMFinalTierNotReached ⇒
boolean
Checks if the final BMSM tier has been reached for the provided item.
- SmartCart.buyMoreSaveMoreDynamicText ⇒
string
|void
Gets the dynamic BMSM discount text for the provided item.
- SmartCart.getBMSMButtonText ⇒
string
Gets the BMSM discount button text for the provided tier.
- SmartCart.getBMSMTiers ⇒
Array
Gets the BMSM tiers.
- SmartCart.hasBMSMButtons ⇒
boolean
Checks if the BMSM discount is displayed as buttons.
- SmartCart.itemHasBMSM ⇒
boolean
|void
Checks if the provided item has Buy More Save More (BMSM) discount enabled.
SmartCart.adjustBMSMQuantity
⇒ void
SmartCart.adjustBMSMQuantity
⇒ void
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.bMSMFinalTierNotReached
⇒ boolean
SmartCart.bMSMFinalTierNotReached
⇒ boolean
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.buyMoreSaveMoreDynamicText
⇒ string
| void
SmartCart.buyMoreSaveMoreDynamicText
⇒ string
| 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.getBMSMButtonText
⇒ string
SmartCart.getBMSMButtonText
⇒ string
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.getBMSMTiers
⇒ Array
SmartCart.getBMSMTiers
⇒ Array
Gets the BMSM tiers.
Returns: Array
- An array of BMSM discount tiers.
SmartCart.hasBMSMButtons
⇒ boolean
SmartCart.hasBMSMButtons
⇒ boolean
Checks if the BMSM discount is displayed as buttons.
Returns: boolean
- True if the BMSM discount is displayed as buttons, false otherwise.
SmartCart.itemHasBMSM
⇒ boolean
| void
SmartCart.itemHasBMSM
⇒ boolean
| 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. |