Dynamicweb 8 Documentation
VariantGroups Property (Product)
Example 

Gets or sets the collection of VariantGroup objects. The same product can be available in different variants, e.g. shoes of different sizes and colors. Administrator can create variants in Management Center -> eCommerce settings -> Product catalog -> Variants
Syntax
'Declaration
 
Public Property VariantGroups As VariantGroupCollection
public VariantGroupCollection VariantGroups {get; set;}
Example
class MyPage : System.Web.UI.Page
{
   private Product prod;
   public void ShowVariantGroupList()
   {
       if (prod.VariantGroups.Count > 0)
       {
           foreach (VariantGroup vgpr in prod.VariantGroups)
           {
               //TODO: insert your code here
           }
       }
   }
}
Requirements

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

See Also

Reference

Product Class
Product Members

Send Feedback