Ecom:Product.DBPrice
Version: - doubleSummary
Returns the default price for the product without VAT, taxes and discount.
Settings
The value is based on the Price field for a product.
(Ecommerce > Product Catalog > Shop > Product group > Product > Details > Default information)
Examples
Outputting the template tag
@GetDouble("Ecom:Product.DBPrice")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Product.DBPrice"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Product.DBPrice");
}
Outputting the template tag
<!--@Ecom:Product.DBPrice-->
Check if double has a value
<!--@If Defined(@Ecom:Product.DBPrice)-->
Let's output this tag here: <strong><!--@Ecom:Product.DBPrice--></strong>
<!--@EndIf(@Ecom:Product.DBPrice)-->