Smart Cart App Methods

SmartCart.enrichSmartCartAppsvoid

Hydrates apps with data from API

SmartCart.executeSmartCartAppsvoid

Executes the app scripts

SmartCart.getSmartCartAppIdByComponentIdstring | null

Returns the app ID by using the component ID

SmartCart.injectSmartCartAppScriptsvoid

Injects the app scripts into the DOM

SmartCart.enrichSmartCartAppsvoid

Hydrates apps with data from API

ParamTypeDescription
cartSettingsobjectSmart Cart settings

SmartCart.executeSmartCartAppsvoid

Executes the app scripts

SmartCart.getSmartCartAppIdByComponentIdstring | null

Returns the app ID by using the component ID

Returns: string | null - The app ID

ParamTypeDescription
componentIdstringThe component ID

SmartCart.injectSmartCartAppScriptsvoid

Injects the app scripts into the DOM

ParamTypeDescription
cartSettingsobjectSmart Cart settings