- SmartCart.enrichSmartCartApps ⇒
void Hydrates apps with data from API
- SmartCart.executeSmartCartApps ⇒
void Executes the app scripts
- SmartCart.getSmartCartAppIdByComponentId ⇒
string|null Returns the app ID by using the component ID
- SmartCart.injectSmartCartAppScripts ⇒
void Injects the app scripts into the DOM
SmartCart.enrichSmartCartApps ⇒ void
SmartCart.enrichSmartCartApps ⇒ voidHydrates apps with data from API
| Param | Type | Description |
|---|---|---|
| cartSettings | object | Smart Cart settings |
SmartCart.executeSmartCartApps ⇒ void
SmartCart.executeSmartCartApps ⇒ voidExecutes the app scripts
SmartCart.getSmartCartAppIdByComponentId ⇒ string | null
SmartCart.getSmartCartAppIdByComponentId ⇒ string | nullReturns 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
SmartCart.injectSmartCartAppScripts ⇒ voidInjects the app scripts into the DOM
| Param | Type | Description |
|---|---|---|
| cartSettings | object | Smart Cart settings |
