Ecom:Product.Rating
Version: - doubleSummary
Returns a generic avarage value for the ratings of the specific product.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetDouble("Ecom:Product.Rating")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Product.Rating"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Product.Rating");
}
Outputting the template tag
<!--@Ecom:Product.Rating-->
Check if double has a value
<!--@If Defined(@Ecom:Product.Rating)-->
Let's output this tag here: <strong><!--@Ecom:Product.Rating--></strong>
<!--@EndIf(@Ecom:Product.Rating)-->