ProductGroups
Summary
The ProductsGroups
loop lets you display information about product groups.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:Group.Category.FieldsCount
Returns the number of product category fields in the product category.
@GetInteger("Ecom:Group.Category.FieldsCount")
Ecom:Group.Category.ID
Returns the ID of the product category assigned to the products in the group.
@GetString("Ecom:Group.Category.ID")
Ecom:Group.Category.Name
Returns the name of the product category that is assigned to the products in the group.
@GetString("Ecom:Group.Category.Name")
Ecom:Group.Clickable
Returns True if the group is clickable in the navigation.
@GetBoolean("Ecom:Group.Clickable")
Ecom:Group.Description
Returns the description of the group.
@GetString("Ecom:Group.Description")
Ecom:Group.IDUrlEncoded
Returns the URL encoded ID of the group.
@GetString("Ecom:Group.IDUrlEncoded")
Ecom:Group.LargeImage
Returns the path to the large image for the group.
@GetString("Ecom:Group.LargeImage")
Ecom:Group.Link.Clean.PID
Returns an URL (incl. the paragraph ID) to the group .
@GetString("Ecom:Group.Link.Clean.PID")
Ecom:Group.Link.PID
Returns a link (incl. the paragraph ID) to the group.
@GetString("Ecom:Group.Link.PID")
Ecom:Group.MetaDescription
Returns the meta description for the group.
@GetString("Ecom:Group.MetaDescription")
Ecom:Group.MetaKeyWords
Returns the meta keywords for the group.
@GetString("Ecom:Group.MetaKeyWords")
Ecom:Group.MetaUrl
Returns the meta URL name for the group.
Returns the URL name that is used to give the page file name another name, if customized URLs is enabled.
It is also used to give your group detail link in the group list a title – viewed with mouse over.
@GetString("Ecom:Group.MetaUrl")
Ecom:Group.ProductCount
Returns the number of products in the group.
@GetInteger("Ecom:Group.ProductCount")
Ecom:Group.ShowInMenu
Returns True if the group is enabled to be visible in the navigation.
@GetBoolean("Ecom:Group.ShowInMenu")
Ecom:Group.ShowInSiteMap
Returns True if the group is enabled to be visible in the sitemap.
@GetBoolean("Ecom:Group.ShowInSiteMap")
Ecom:Group.SmallImage
Returns the path to the small image for a group.
@GetString("Ecom:Group.SmallImage")
Ecom:Group:Field.[TempateTag]
The Ecom:Group:Field
tags let you display information about product group fields.
@GetString("Ecom:Group:Field.[TempateTag]")
Available loops
Childgroups
The Childgroups
loop lets you display various information about the subgroups in the product group.
@foreach (LoopItem item in GetLoop("Childgroups")){ <p>@item.GetValue("TagName")</p> }
CustomGroupFields
The CustomGroupFields
loop lets you display custom group fields for a group.
@foreach (LoopItem item in GetLoop("CustomGroupFields")){ <p>@item.GetValue("TagName")</p> }
GroupCategoryFields
The GroupCategoryFields
loop lets you display various information about the product categories fields that you can enable on a group
@foreach (LoopItem item in GetLoop("GroupCategoryFields")){ <p>@item.GetValue("TagName")</p> }