Ecom:Product.Prices.Price
Version: - priceSummary
Returns the product price from the price matrix.
Settings
The value is based on the Price field for the product in the price matrix.
(Ecommerce - Product catalog - Shop - Product - Prices - Price)
Remarks
Includes the option to add price extensions in order to format the product price. Prefix : Ecom:Product.Price.
Examples
Outputting the template tag
@GetPrice("Ecom:Product.Prices.Price")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetPrice("Ecom:Product.Prices.Price"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetPrice("Ecom:Product.Prices.Price");
}
Outputting the template tag
<!--@Ecom:Product.Prices.Price-->
Check if price has a value
<!--@If Defined(@Ecom:Product.Prices.Price)-->
Let's output this tag here: <strong><!--@Ecom:Product.Prices.Price--></strong>
<!--@EndIf(@Ecom:Product.Prices.Price)-->