Version: - string  


Returns the name of the product category that is assigned to the products in the group.


The value is based on the Name field for the product category.

(Management center > Ecommerce > Product Catalog > Product categories > Product category > Name)


Outputting the template tag


Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Group.Category.Name"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Group.Category.Name"); }

Outputting the template tag


Check if string has a value

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