- 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.<string>
SmartCart.getAllCrossSellWidgetIds ⇒ Array.<string>Get all cross sell widget IDs in Cross-Sell components in the current Smart Cart settings
Returns: Array.<string> - Array of widget IDs
SmartCart.getWidgetIdByComponentId ⇒ string | null
SmartCart.getWidgetIdByComponentId ⇒ string | nullGet 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 ⇒ booleanCheck if there are cross sell widgets in the current Smart Cart settings
Returns: boolean - True if there are cross sell widgets
