Dynamicweb.eCommerce.Products Namespace > Product Class : RelatedGroups Property |
Overload | Description |
---|---|
RelatedGroups | Gets or sets the collection of related groups. The products can be placed in a different product group and then they will appear in more than one product category. |
RelatedGroups(Boolean) | Gets or sets the collection of related groups excluding not used items. The products can be placed in a different product group and then they will appear in more than one product category. |
class MyPage : System.Web.UI.Page { private Product prod; public void ShowRelatedGroupList() { if (prod.RelatedGroups.Count > 0) { foreach (ProductRelatedGroup prg in prod.RelatedGroups) { //TODO: insert your code here } } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2