- SmartCart.getAllCrossSellWidgetIds ⇒
Array.<string>
Get all cross sell widget IDs in Cross-Sell components in the current Smart Cart settings
- SmartCart.getWidgetIdByComponentId ⇒
string
|null
Get the widget ID by component ID
- SmartCart.hasCrossSellWidgets ⇒
boolean
Check if there are cross sell widgets in the current Smart Cart settings
SmartCart.getAllCrossSellWidgetIds
⇒ Array.
SmartCart.getAllCrossSellWidgetIds
⇒ Array.
Get all cross sell widget IDs in Cross-Sell components in the current Smart Cart settings
Returns: Array.
- Array of widget IDs
SmartCart.getWidgetIdByComponentId
⇒ string
| null
SmartCart.getWidgetIdByComponentId
⇒ string
| null
Get the widget ID by component ID
Returns: string
| null
- The widget ID
Param | Type | Description |
---|---|---|
componentId | string | The component ID |
SmartCart.hasCrossSellWidgets
⇒ boolean
SmartCart.hasCrossSellWidgets
⇒ boolean
Check if there are cross sell widgets in the current Smart Cart settings
Returns: boolean
- True if there are cross sell widgets