Smart Cart App Methods
- 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
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 |
---
title: Smart Cart App Methods
excerpt: ''
deprecated: false
hidden: false
metadata:
title: ''
description: ''
robots: index
next:
description: Return to the New Methods Overview Page to see other available methods.
pages:
- type: endpoint
slug: smart-cart-methods
title: Methods Overview - New
---
<dl>
<dt><a href="#SmartCart.enrichSmartCartApps">SmartCart.enrichSmartCartApps</a> ⇒ <code>void</code></dt>
<dd><p>Hydrates apps with data from API</p></dd>
<dt><a href="#SmartCart.executeSmartCartApps">SmartCart.executeSmartCartApps</a> ⇒ <code>void</code></dt>
<dd><p>Executes the app scripts</p></dd>
<dt><a href="#SmartCart.getSmartCartAppIdByComponentId">SmartCart.getSmartCartAppIdByComponentId</a> ⇒ <code>string</code> | <code>null</code></dt>
<dd><p>Returns the app ID by using the component ID</p></dd>
<dt><a href="#SmartCart.injectSmartCartAppScripts">SmartCart.injectSmartCartAppScripts</a> ⇒ <code>void</code></dt>
<dd><p>Injects the app scripts into the DOM</p></dd>
</dl>
<a name="SmartCart.enrichSmartCartApps"></a>
## `SmartCart.enrichSmartCartApps` ⇒ <code>void</code>
Hydrates apps with data from API
<Table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>cartSettings</td>
<td><code>object</code></td>
<td>Smart Cart settings</td>
</tr>
</tbody>
</Table>
<a name="SmartCart.executeSmartCartApps"></a>
## `SmartCart.executeSmartCartApps` ⇒ <code>void</code>
Executes the app scripts
<a name="SmartCart.getSmartCartAppIdByComponentId"></a>
## `SmartCart.getSmartCartAppIdByComponentId` ⇒ <code>string</code> | <code>null</code>
Returns the app ID by using the component ID
**Returns**: <code>string</code> | <code>null</code> - The app ID
<Table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>componentId</td>
<td><code>string</code></td>
<td>The component ID</td>
</tr>
</tbody>
</Table>
<a name="SmartCart.injectSmartCartAppScripts"></a>
## `SmartCart.injectSmartCartAppScripts` ⇒ <code>void</code>
Injects the app scripts into the DOM
<Table>
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>cartSettings</td>
<td><code>object</code></td>
<td>Smart Cart settings</td>
</tr>
</tbody>
</Table>