Gets the price of a given product.

This viper method also supports the extension viper syntax.

Syntax

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

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
float page.<id>.price(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.
SXML