Subtotal Methods

SmartCart.getSubtotalSettingsobject

Returns the subtotal settings from the SmartCart components array.

SmartCart.subtotalstring

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.subtotalLabelstring

Returns the subtotal label.

SmartCart.subtotalNumbernumber

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

SmartCart.getSubtotalSettingsobject

Returns the subtotal settings from the SmartCart components array.

SmartCart.subtotalstring

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

ParamTypeDescription
formatstringCurrency format string

SmartCart.subtotalLabelstring

Returns the subtotal label.

SmartCart.subtotalNumbernumber

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