Ecom:Group.ProductCount

Version: - integer  

Summary

Returns the number of products in the group.

Settings

The value is generated automatically.

Remarks

  • It counts the number of active/inactive products according to the "Only show products" in General settings in Management settings.
  • It only counts the products in the current language.
  • It does not count variants.

Examples

Outputting the template tag

@GetInteger("Ecom:Group.ProductCount")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:Group.ProductCount"); }

Outputting the template tag

<!--@Ecom:Group.ProductCount-->

Check if integer has a value

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