Skip to content

Subtotal Methods

SmartCart.getSubtotalSettings ⇒ object

Returns the subtotal settings from the SmartCart components array.

SmartCart.subtotal ⇒ string

Returns the subtotal amount to display. The subtotal is often just a formatted string, but can be returned as HTML to display a compare (discount) price

SmartCart.subtotalLabel ⇒ string

Returns the subtotal label.

SmartCart.subtotalNumber ⇒ number

Returns the subtotal number (rather than a formatted string). This is useful for calculating the subtotal for other components.

SmartCart.getSubtotalSettings ⇒ object

Returns the subtotal settings from the SmartCart components array.

SmartCart.subtotal ⇒ string

Returns the subtotal amount to display. The subtotal is often just a formatted string, but can be returned as HTML to display a compare (discount) price

Param Type Description
format string Currency format string

SmartCart.subtotalLabel ⇒ string

Returns the subtotal label.

SmartCart.subtotalNumber ⇒ number

Returns the subtotal number (rather than a formatted string). This is useful for calculating the subtotal for other components.