Product Catalog Groups
The Product Catalog Groups item field is used to select one or more product groups when creating an item (Figure 1.1).
![](/Admin/Public/GetImage.ashx?width=1280&crop=7&Compression=75&image=%2fFiles%2fImages%2fItems%2fProductCatalogGroups1.png)
When you add this item field to an item, you should use the parameters set the View type to Groups (Figure 1.2) – this ensures that the editor can only select groups using the selector. This item field does not properly support selecting products.
![](/Admin/Public/GetImage.ashx?width=1280&crop=7&Compression=75&image=%2fFiles%2fImages%2fItems%2fProductCatalogGroups2.png)
You can then render information about the selected groups in frontend:
C#
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
@using Dynamicweb.Ecommerce.ProductCatalog
<h1>Product Catalog Groups</h1>
@if (Model.Item.GetValue("Product_Catalog_Groups") != null)
{
var grouplist = Model.Item.GetValue("Product_Catalog_Groups") as List<ProductGroupViewModel>;
if (grouplist != null)
{
foreach (var group in grouplist)
{
<div>@group.Name</div>
}
}
}