Ecom:Product.RatingStars
Version: - stringSummary
Returns an avarage value for the ratings of the specific product - displayed with stars.
Settings
The value is generated automatically.
Remarks
Returns the complet source code for the rating stars.
Examples
Outputting the template tag
@GetString("Ecom:Product.RatingStars")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.RatingStars"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.RatingStars");
}
Outputting the template tag
<!--@Ecom:Product.RatingStars-->
Check if string has a value
<!--@If Defined(@Ecom:Product.RatingStars)-->
Let's output this tag here: <strong><!--@Ecom:Product.RatingStars--></strong>
<!--@EndIf(@Ecom:Product.RatingStars)-->