Smart Cart App Methods
SmartCart.enrichSmartCartApps ⇒ void¶
Hydrates apps with data from API
| Param | Type | Description |
|---|---|---|
| cartSettings | object |
Smart Cart settings |
SmartCart.executeSmartCartApps ⇒ void¶
Executes the app scripts
SmartCart.getSmartCartAppIdByComponentId ⇒ string | null¶
Returns the app ID by using the component ID
Returns: string | null - The app ID
| Param | Type | Description |
|---|---|---|
| componentId | string |
The component ID |
SmartCart.injectSmartCartAppScripts ⇒ void¶
Injects the app scripts into the DOM
| Param | Type | Description |
|---|---|---|
| cartSettings | object |
Smart Cart settings |
See something that needs updating?
Suggest an edit