Ecom:Group.Category.Name
Version: - stringSummary
Returns the name of the product category that is assigned to the products in the group.
Settings
The value is based on the Name field for the product category.
(Management center > Ecommerce > Product Catalog > Product categories > Product category > Name)
Examples
Outputting the template tag
@GetString("Ecom:Group.Category.Name")
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
<!--@Ecom:Group.Category.Name-->
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)-->