Checkout Area Methods
- SmartCart.adjustPreviewButtons ⇒
void
-
Updates the Accelerated Checkout buttons for previewing in the Admin.
- SmartCart.appendAcceleratedCheckout ⇒
void
-
Appends the '.additional-checkout-buttons' element to the SmartCart flyout
- SmartCart.checkout ⇒
void
-
Performs the checkout process
- SmartCart.checkoutLabel ⇒
string
-
Gets the label for the checkout button
- SmartCart.clearAcceleratedCheckout ⇒
void
-
Removes the '.additional-checkout-buttons' element from the SmartCart flyout
- SmartCart.continueShoppingLabel ⇒
string
-
Get the label for the Continue Shopping button
- SmartCart.getAdditionalCheckoutButtons ⇒
boolean | object
-
Checks for the existence of the '.additional-checkout-buttons' element, which is used by the 'rebuy-smartcart-extensions.liquid' snippet
- SmartCart.getCheckoutSettings ⇒
object
-
gets the checkout settings from the SmartCart
- SmartCart.hasAcceptedTerms ⇒
boolean
-
Checks if the user has accepted the terms and conditions
- SmartCart.hasCheckoutButton ⇒
boolean
-
Checks if the checkout button is enabled
- SmartCart.hasContinueShoppingButton ⇒
boolean
-
Checks if the Continue Shopping button is enabled
- SmartCart.hasPrePurchase ⇒
boolean
-
Returns true if there is a pre-purchase pop-up widget enabled
- SmartCart.hasShopPayButton ⇒
boolean
-
Checks if the Shop Pay button is enabled
- SmartCart.hasTermsEnabled ⇒
boolean
-
Determines if the terms and conditions are enabled in settings
- SmartCart.hasViewCartButton ⇒
boolean
-
Checks if the View Cart button is enabled
- SmartCart.installmentsEnabled ⇒
boolean
-
Returns true if the payment installments indicator text is enabled
- SmartCart.installmentsMessage ⇒
string
-
Returns the payment installments indicator text
- SmartCart.manageAcceleratedCheckout ⇒
void
-
Manages the Accelerated Checkout feature
- SmartCart.prePurchaseWidgetId ⇒
string
-
Returns the pre-purchase pop-up widget ID
- SmartCart.renderPayPalButton
-
Conditionally renders a paypal button if the PayPal iFrame is not rendered
- SmartCart.shopPayCheckout ⇒
void
-
Performs the Shop Pay checkout process
- SmartCart.shopPaySvg :
string
-
SVG code for the Shop Pay icon.
- SmartCart.updateTermsCheck ⇒
void
-
Update the terms checkbox status
- SmartCart.viewCart
-
Navigates to the Shopify Cart Page
- SmartCart.viewCartLabel ⇒
string
-
Gets the label for the View Cart button
Updates the Accelerated Checkout buttons for previewing in the Admin.
|
Param
|
Type
|
Description
|
|
settings
|
object
|
Smart Cart settings
|
SmartCart.appendAcceleratedCheckout ⇒ void
Appends the '.additional-checkout-buttons' element to the SmartCart flyout
SmartCart.checkout ⇒ void
Performs the checkout process
SmartCart.checkoutLabel ⇒ string
Gets the label for the checkout button
Returns: string - The label for the checkout button (HTML content)\
SmartCart.clearAcceleratedCheckout ⇒ void
Removes the '.additional-checkout-buttons' element from the SmartCart flyout
Get the label for the Continue Shopping button
Returns: string - The label for the Continue Shopping button\
Checks for the existence of the '.additional-checkout-buttons' element, which is used by the 'rebuy-smartcart-extensions.liquid' snippet
Returns: boolean | object - returns false otherwise buttonContainers, buttonContainer, buttonList, buttonListItems.
|
Param
|
Type
|
Description
|
|
parent
|
Element
|
DOM Element
|
SmartCart.getCheckoutSettings ⇒ object
gets the checkout settings from the SmartCart
Returns: object - The checkout settings object\
SmartCart.hasAcceptedTerms ⇒ boolean
Checks if the user has accepted the terms and conditions
Returns: boolean - True if the user has accepted the terms, otherwise false\
Checks if the checkout button is enabled
Returns: boolean - True if the checkout button is enabled, otherwise false\
Checks if the Continue Shopping button is enabled
Returns: boolean - True if the Continue Shopping button is enabled, otherwise false\
SmartCart.hasPrePurchase ⇒ boolean
Returns true if there is a pre-purchase pop-up widget enabled
Checks if the Shop Pay button is enabled
Returns: boolean - True if the Shop Pay button is enabled, otherwise false\
SmartCart.hasTermsEnabled ⇒ boolean
Determines if the terms and conditions are enabled in settings
Returns: boolean - True if terms and conditions are enabled, otherwise false\
Checks if the View Cart button is enabled
Returns: boolean - True if the View Cart button is enabled, otherwise false\
SmartCart.installmentsEnabled ⇒ boolean
Returns true if the payment installments indicator text is enabled
SmartCart.installmentsMessage ⇒ string
Returns the payment installments indicator text
Returns: string - HTML\
SmartCart.manageAcceleratedCheckout ⇒ void
Manages the Accelerated Checkout feature
Returns the pre-purchase pop-up widget ID
Conditionally renders a paypal button if the PayPal iFrame is not rendered
SmartCart.shopPayCheckout ⇒ void
Performs the Shop Pay checkout process
SmartCart.shopPaySvg : string
SVG code for the Shop Pay icon.
SmartCart.updateTermsCheck ⇒ void
Update the terms checkbox status
SmartCart.viewCart
Navigates to the Shopify Cart Page
SmartCart.viewCartLabel ⇒ string
Gets the label for the View Cart button
Returns: string - The label for the View Cart button
---
title: Checkout Area Methods
excerpt: Control checkout buttons, terms, and payment options
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.adjustPreviewButtons">SmartCart.adjustPreviewButtons</a> ⇒ <code>void</code></dt>
<dd>
<p>Updates the Accelerated Checkout buttons for previewing in the Admin.</p>
</dd>
<dt><a href="#SmartCart.appendAcceleratedCheckout">SmartCart.appendAcceleratedCheckout</a> ⇒ <code>void</code></dt>
<dd>
<p>Appends the '.additional-checkout-buttons' element to the SmartCart flyout</p>
</dd>
<dt><a href="#SmartCart.checkout">SmartCart.checkout</a> ⇒ <code>void</code></dt>
<dd>
<p>Performs the checkout process</p>
</dd>
<dt><a href="#SmartCart.checkoutLabel">SmartCart.checkoutLabel</a> ⇒ <code>string</code></dt>
<dd>
<p>Gets the label for the checkout button</p>
</dd>
<dt><a href="#SmartCart.clearAcceleratedCheckout">SmartCart.clearAcceleratedCheckout</a> ⇒ <code>void</code></dt>
<dd>
<p>Removes the '.additional-checkout-buttons' element from the SmartCart flyout</p>
</dd>
<dt><a href="#SmartCart.continueShoppingLabel">SmartCart.continueShoppingLabel</a> ⇒ <code>string</code></dt>
<dd>
<p>Get the label for the Continue Shopping button</p>
</dd>
<dt><a href="#SmartCart.getAdditionalCheckoutButtons">SmartCart.getAdditionalCheckoutButtons</a> ⇒ <code>boolean</code> | <code>object</code></dt>
<dd>
<p>Checks for the existence of the '.additional-checkout-buttons' element, which is used by the 'rebuy-smartcart-extensions.liquid' snippet</p>
</dd>
<dt><a href="#SmartCart.getCheckoutSettings">SmartCart.getCheckoutSettings</a> ⇒ <code>object</code></dt>
<dd>
<p>gets the checkout settings from the SmartCart</p>
</dd>
<dt><a href="#SmartCart.hasAcceptedTerms">SmartCart.hasAcceptedTerms</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Checks if the user has accepted the terms and conditions</p>
</dd>
<dt><a href="#SmartCart.hasCheckoutButton">SmartCart.hasCheckoutButton</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Checks if the checkout button is enabled</p>
</dd>
<dt><a href="#SmartCart.hasContinueShoppingButton">SmartCart.hasContinueShoppingButton</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Checks if the Continue Shopping button is enabled</p>
</dd>
<dt><a href="#SmartCart.hasPrePurchase">SmartCart.hasPrePurchase</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Returns true if there is a pre-purchase pop-up widget enabled</p>
</dd>
<dt><a href="#SmartCart.hasShopPayButton">SmartCart.hasShopPayButton</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Checks if the Shop Pay button is enabled</p>
</dd>
<dt><a href="#SmartCart.hasTermsEnabled">SmartCart.hasTermsEnabled</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Determines if the terms and conditions are enabled in settings</p>
</dd>
<dt><a href="#SmartCart.hasViewCartButton">SmartCart.hasViewCartButton</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Checks if the View Cart button is enabled</p>
</dd>
<dt><a href="#SmartCart.installmentsEnabled">SmartCart.installmentsEnabled</a> ⇒ <code>boolean</code></dt>
<dd>
<p>Returns true if the payment installments indicator text is enabled</p>
</dd>
<dt><a href="#SmartCart.installmentsMessage">SmartCart.installmentsMessage</a> ⇒ <code>string</code></dt>
<dd>
<p>Returns the payment installments indicator text</p>
</dd>
<dt><a href="#SmartCart.manageAcceleratedCheckout">SmartCart.manageAcceleratedCheckout</a> ⇒ <code>void</code></dt>
<dd>
<p>Manages the Accelerated Checkout feature</p>
</dd>
<dt><a href="#SmartCart.prePurchaseWidgetId">SmartCart.prePurchaseWidgetId</a> ⇒ <code>string</code></dt>
<dd>
<p>Returns the pre-purchase pop-up widget ID</p>
</dd>
<dt><a href="#SmartCart.renderPayPalButton">SmartCart.renderPayPalButton</a></dt>
<dd>
<p>Conditionally renders a paypal button if the PayPal iFrame is not rendered</p>
</dd>
<dt><a href="#SmartCart.shopPayCheckout">SmartCart.shopPayCheckout</a> ⇒ <code>void</code></dt>
<dd>
<p>Performs the Shop Pay checkout process</p>
</dd>
<dt><a href="#SmartCart.shopPaySvg">SmartCart.shopPaySvg</a> : <code>string</code></dt>
<dd>
<p>SVG code for the Shop Pay icon.</p>
</dd>
<dt><a href="#SmartCart.updateTermsCheck">SmartCart.updateTermsCheck</a> ⇒ <code>void</code></dt>
<dd>
<p>Update the terms checkbox status</p>
</dd>
<dt><a href="#SmartCart.viewCart">SmartCart.viewCart</a></dt>
<dd>
<p>Navigates to the Shopify Cart Page</p>
</dd>
<dt><a href="#SmartCart.viewCartLabel">SmartCart.viewCartLabel</a> ⇒ <code>string</code></dt>
<dd>
<p>Gets the label for the View Cart button</p>
</dd>
</dl>
<a name="SmartCart.adjustPreviewButtons"></a>
## `SmartCart.adjustPreviewButtons` ⇒ <code>void</code>
Updates the Accelerated Checkout buttons for previewing in the Admin.
<Table>
<thead>
<tr>
<th>
Param
</th>
<th>
Type
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
settings
</td>
<td>
<code>object</code>
</td>
<td>
Smart Cart settings
</td>
</tr>
</tbody>
</Table>
<a name="SmartCart.appendAcceleratedCheckout"></a>
## `SmartCart.appendAcceleratedCheckout` ⇒ <code>void</code>
Appends the '.additional-checkout-buttons' element to the SmartCart flyout
<a name="SmartCart.checkout"></a>
## `SmartCart.checkout` ⇒ <code>void</code>
Performs the checkout process
<a name="SmartCart.checkoutLabel"></a>
## `SmartCart.checkoutLabel` ⇒ <code>string</code>
Gets the label for the checkout button
**Returns**: <code>string</code> - The label for the checkout button (HTML content)\ <a name="SmartCart.clearAcceleratedCheckout"></a>
## `SmartCart.clearAcceleratedCheckout` ⇒ <code>void</code>
Removes the '.additional-checkout-buttons' element from the SmartCart flyout
<a name="SmartCart.continueShoppingLabel"></a>
## `SmartCart.continueShoppingLabel` ⇒ <code>string</code>
Get the label for the Continue Shopping button
**Returns**: <code>string</code> - The label for the Continue Shopping button\ <a name="SmartCart.getAdditionalCheckoutButtons"></a>
## `SmartCart.getAdditionalCheckoutButtons` ⇒ <code>boolean</code> \| <code>object</code>
Checks for the existence of the '.additional-checkout-buttons' element, which is used by the 'rebuy-smartcart-extensions.liquid' snippet
**Returns**: <code>boolean</code> \| <code>object</code> - returns false otherwise buttonContainers, buttonContainer, buttonList, buttonListItems.
<Table>
<thead>
<tr>
<th>
Param
</th>
<th>
Type
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
parent
</td>
<td>
<code>Element</code>
</td>
<td>
DOM Element
</td>
</tr>
</tbody>
</Table>
<a name="SmartCart.getCheckoutSettings"></a>
## `SmartCart.getCheckoutSettings` ⇒ <code>object</code>
gets the checkout settings from the SmartCart
**Returns**: <code>object</code> - The checkout settings object\ <a name="SmartCart.hasAcceptedTerms"></a>
## `SmartCart.hasAcceptedTerms` ⇒ <code>boolean</code>
Checks if the user has accepted the terms and conditions
**Returns**: <code>boolean</code> - True if the user has accepted the terms, otherwise false\ <a name="SmartCart.hasCheckoutButton"></a>
## `SmartCart.hasCheckoutButton` ⇒ <code>boolean</code>
Checks if the checkout button is enabled
**Returns**: <code>boolean</code> - True if the checkout button is enabled, otherwise false\ <a name="SmartCart.hasContinueShoppingButton"></a>
## `SmartCart.hasContinueShoppingButton` ⇒ <code>boolean</code>
Checks if the Continue Shopping button is enabled
**Returns**: <code>boolean</code> - True if the Continue Shopping button is enabled, otherwise false\ <a name="SmartCart.hasPrePurchase"></a>
## `SmartCart.hasPrePurchase` ⇒ <code>boolean</code>
Returns true if there is a pre-purchase pop-up widget enabled
<a name="SmartCart.hasShopPayButton"></a>
## `SmartCart.hasShopPayButton` ⇒ <code>boolean</code>
Checks if the Shop Pay button is enabled
**Returns**: <code>boolean</code> - True if the Shop Pay button is enabled, otherwise false\ <a name="SmartCart.hasTermsEnabled"></a>
## `SmartCart.hasTermsEnabled` ⇒ <code>boolean</code>
Determines if the terms and conditions are enabled in settings
**Returns**: <code>boolean</code> - True if terms and conditions are enabled, otherwise false\ <a name="SmartCart.hasViewCartButton"></a>
## `SmartCart.hasViewCartButton` ⇒ <code>boolean</code>
Checks if the View Cart button is enabled
**Returns**: <code>boolean</code> - True if the View Cart button is enabled, otherwise false\ <a name="SmartCart.installmentsEnabled"></a>
## `SmartCart.installmentsEnabled` ⇒ <code>boolean</code>
Returns true if the payment installments indicator text is enabled
<a name="SmartCart.installmentsMessage"></a>
## `SmartCart.installmentsMessage` ⇒ <code>string</code>
Returns the payment installments indicator text
**Returns**: <code>string</code> - HTML\ <a name="SmartCart.manageAcceleratedCheckout"></a>
## `SmartCart.manageAcceleratedCheckout` ⇒ <code>void</code>
Manages the Accelerated Checkout feature
<a name="SmartCart.prePurchaseWidgetId"></a>
## `SmartCart.prePurchaseWidgetId` ⇒ <code>string</code>
Returns the pre-purchase pop-up widget ID
<a name="SmartCart.renderPayPalButton"></a>
## `SmartCart.renderPayPalButton`
Conditionally renders a paypal button if the PayPal iFrame is not rendered
<a name="SmartCart.shopPayCheckout"></a>
## `SmartCart.shopPayCheckout` ⇒ <code>void</code>
Performs the Shop Pay checkout process
<a name="SmartCart.shopPaySvg"></a>
## `SmartCart.shopPaySvg` : <code>string</code>
SVG code for the Shop Pay icon.
<a name="SmartCart.updateTermsCheck"></a>
## `SmartCart.updateTermsCheck` ⇒ <code>void</code>
Update the terms checkbox status
<a name="SmartCart.viewCart"></a>
## `SmartCart.viewCart`
Navigates to the Shopify Cart Page
<a name="SmartCart.viewCartLabel"></a>
## `SmartCart.viewCartLabel` ⇒ <code>string</code>
Gets the label for the View Cart button
**Returns**: <code>string</code> - The label for the View Cart button