Dynamicweb 8 Documentation
Product Class
Members  Example 

Represents information about a product.
Object Model
Product ClassStockUnit ClassDetailCollection ClassDetail ClassDiscounts ClassDiscount ClassGroupCollection ClassGroup ClassProductIndexingOptions ClassProductItemCollection ClassProductItem ClassLanguage ClassManufacturer ClassProduct.MetaData ClassOrderLineFieldCollection ClassOrderLineField ClassPeriod ClassPeriodCollection ClassPeriod ClassPriceInfo ClassPriceCollection ClassPrice ClassProductFieldValueCollection ClassProductFieldValue ClassPropertyProductValueCollection ClassPropertyProductValue ClassPropertyProductRelationCollection ClassPropertyProductRelation ClassProductRelatedGroupCollection ClassProductRelatedGroup ClassProductRelatedGroupCollection ClassProductRelatedGroup ClassShop ClassStockGroup ClassStockStatus ClassTaxCollection ClassTax ClassVariantOptionCollection ClassVariantOption ClassStockUnitCollection ClassStockUnit ClassStockUnitCollection ClassStockUnit ClassVariantCombinationCollection ClassVariantCombination ClassVariantCombinationCollection ClassVariantCombination ClassVariantGroupCollection ClassVariantGroup ClassVatGroup Class
Syntax
Example
class BOMConfigurator
{
   private Dynamicweb.Rendering.Template template;
   private ProductCollection BOMProducts;
   private ProductItemCollection Configurators;
   private Product product;
 
   public void SplitBOM()
   {
       //### Split BOM items from configurators
       BOMProducts = new ProductCollection();
       Configurators = new ProductItemCollection();
       product = new Product();
       template = new Template();
 
       if (template.LoopExists("BOMConfigurators") || template.LoopExists("BOMProducts")) {
           foreach (ProductItem item in product.Items)
           {
               if (item.BomGroupID == string.Empty) {
                   BOMProducts.Add(item.Products[0]);
               }
               else {
                   Configurators.Add(item);
               }
           }
       }
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.Product

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 Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback