Ecom:Product.CommentCount

Version: - integer  

Summary

Returns a count for comments for products.

It counts how many comments the specific product has.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("Ecom:Product.CommentCount")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Product.CommentCount"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:Product.CommentCount"); }

Outputting the template tag

<!--@Ecom:Product.CommentCount-->

Check if integer has a value

<!--@If Defined(@Ecom:Product.CommentCount)--> Let's output this tag here: <strong><!--@Ecom:Product.CommentCount--></strong> <!--@EndIf(@Ecom:Product.CommentCount)-->