Gets the total.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
float this.totals(enum type)
float this.totals(enum type, string code)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
float page.<id>.totals(enum type)
float page.<id>.totals(enum type, string code)

Parameters

Name Data Type Description
type Enum The type.
Enum values:
  • TaxOnly
  • TaxIncluded
  • TaxExcluded
code String The code.

Return Value

Data Type Description
Float Float

Used in

Macro Description
ShoppingCart Shopping Cart Macro.

Expand image Example

SXML