- 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
SmartCart.adjustPreviewButtons
⇒ void
SmartCart.adjustPreviewButtons
⇒ void
Updates the Accelerated Checkout buttons for previewing in the Admin.
Param | Type | Description |
---|---|---|
settings | object | Smart Cart settings |
SmartCart.appendAcceleratedCheckout
⇒ void
SmartCart.appendAcceleratedCheckout
⇒ void
Appends the '.additional-checkout-buttons' element to the SmartCart flyout
SmartCart.checkout
⇒ void
SmartCart.checkout
⇒ void
Performs the checkout process
SmartCart.checkoutLabel
⇒ string
SmartCart.checkoutLabel
⇒ string
Gets the label for the checkout button
Returns: string
- The label for the checkout button (HTML content)
SmartCart.clearAcceleratedCheckout
⇒ void
SmartCart.clearAcceleratedCheckout
⇒ void
Removes the '.additional-checkout-buttons' element from the SmartCart flyout
SmartCart.continueShoppingLabel
⇒ string
SmartCart.continueShoppingLabel
⇒ string
Get the label for the Continue Shopping button
Returns: string
- The label for the Continue Shopping button
SmartCart.getAdditionalCheckoutButtons
⇒ boolean
| object
SmartCart.getAdditionalCheckoutButtons
⇒ boolean
| object
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
SmartCart.getCheckoutSettings
⇒ object
gets the checkout settings from the SmartCart
Returns: object
- The checkout settings object
SmartCart.hasAcceptedTerms
⇒ boolean
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
SmartCart.hasCheckoutButton
⇒ boolean
SmartCart.hasCheckoutButton
⇒ boolean
Checks if the checkout button is enabled
Returns: boolean
- True if the checkout button is enabled, otherwise false
SmartCart.hasContinueShoppingButton
⇒ boolean
SmartCart.hasContinueShoppingButton
⇒ boolean
Checks if the Continue Shopping button is enabled
Returns: boolean
- True if the Continue Shopping button is enabled, otherwise false
SmartCart.hasPrePurchase
⇒ boolean
SmartCart.hasPrePurchase
⇒ boolean
Returns true if there is a pre-purchase pop-up widget enabled
SmartCart.hasShopPayButton
⇒ boolean
SmartCart.hasShopPayButton
⇒ boolean
Checks if the Shop Pay button is enabled
Returns: boolean
- True if the Shop Pay button is enabled, otherwise false
SmartCart.hasTermsEnabled
⇒ boolean
SmartCart.hasTermsEnabled
⇒ boolean
Determines if the terms and conditions are enabled in settings
Returns: boolean
- True if terms and conditions are enabled, otherwise false
SmartCart.hasViewCartButton
⇒ boolean
SmartCart.hasViewCartButton
⇒ boolean
Checks if the View Cart button is enabled
Returns: boolean
- True if the View Cart button is enabled, otherwise false
SmartCart.installmentsEnabled
⇒ boolean
SmartCart.installmentsEnabled
⇒ boolean
Returns true if the payment installments indicator text is enabled
SmartCart.installmentsMessage
⇒ string
SmartCart.installmentsMessage
⇒ string
Returns the payment installments indicator text
SmartCart.manageAcceleratedCheckout
⇒ void
SmartCart.manageAcceleratedCheckout
⇒ void
Manages the Accelerated Checkout feature
SmartCart.prePurchaseWidgetId
⇒ string
SmartCart.prePurchaseWidgetId
⇒ string
Returns the pre-purchase pop-up widget ID
SmartCart.renderPayPalButton
SmartCart.renderPayPalButton
Conditionally renders a paypal button if the PayPal iFrame is not rendered
SmartCart.shopPayCheckout
⇒ void
SmartCart.shopPayCheckout
⇒ void
Performs the Shop Pay checkout process
SmartCart.shopPaySvg
: string
SmartCart.shopPaySvg
: string
SVG code for the Shop Pay icon.
SmartCart.updateTermsCheck
⇒ void
SmartCart.updateTermsCheck
⇒ void
Update the terms checkbox status
SmartCart.viewCart
SmartCart.viewCart
Navigates to the Shopify Cart Page
SmartCart.viewCartLabel
⇒ string
SmartCart.viewCartLabel
⇒ string
Gets the label for the View Cart button
Returns: string
- The label for the View Cart button