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