eCom:Related.MostPopularProducts.Count
Version: - integerSummary
Returns the number products in the MostPopularProducts list.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("eCom:Related.MostPopularProducts.Count")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("eCom:Related.MostPopularProducts.Count"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("eCom:Related.MostPopularProducts.Count");
}
Outputting the template tag
<!--@eCom:Related.MostPopularProducts.Count-->
Check if integer has a value
<!--@If Defined(@eCom:Related.MostPopularProducts.Count)-->
Let's output this tag here: <strong><!--@eCom:Related.MostPopularProducts.Count--></strong>
<!--@EndIf(@eCom:Related.MostPopularProducts.Count)-->