Dynamicweb 8 Documentation
Product Class Methods


For a list of all members of this type, see Product members.

Public Methods
 NameDescription
Public MethodAddGroupAdds the group to the products Groups collection. Also creates the ProductGroupRelation in the database if it does not already exist and group.ID is exists.  
Public MethodAddRelatedProductAdds a related product to this product and saves it to the database.  
Public MethodAddVariantGroupAdds the variant group.  
Public MethodCloneClones this instance.  
Public MethodCopyCopies this instance and saves it in the DB. This method like Clone method, but generates new ID and sets empty VariantID.  
Public MethodCopyAsVariantCopies this instance and saves it in the DB.  
Public MethodDeleteDeletes this Product. If this instance is a Variant or a specific language version, then only this instance is deleted. Requires the product to be in the Database or exception is thrown.  
Public MethodFillFills the properties from DataReader.  
Public Methodstatic (Shared in Visual Basic)GetActiveProductsOverloaded. Gets the active products. Context.LanguageID is used.  
Public Methodstatic (Shared in Visual Basic)GetAllProductsOverloaded. Gets all products. Context.LanguageID is used.  
Public Methodstatic (Shared in Visual Basic)GetAllProductsByShopIDGets all products from shop. No language filter is applied meaning all language version of all products in the shop are returned.  
Public Methodstatic (Shared in Visual Basic)GetAllProductsWithoutVariantsOverloaded. Gets all products without variants. Context.LanguageID is used.  
Public MethodGetCalculatedFieldValues  
Public MethodGetCategoriesGet the Dynamicweb.eCommerce.Products.Categories.Category objects for each of the Dynamicweb.eCommerce.Products.Group this belongs  
Public MethodGetCategoryValueOverloaded. Retrieves the value of the given category field.  
Public Methodstatic (Shared in Visual Basic)GetCommaSeparatedProductIDsReturns list of IDs.  
Public Methodstatic (Shared in Visual Basic)GetProductByIDOverloaded. Gets the product by ID.  
Public Methodstatic (Shared in Visual Basic)GetProductByNumberOverloaded. Gets the product by number.  
Public Methodstatic (Shared in Visual Basic)GetProductBySqlOverloaded. Gets the products by SQL.  
Public MethodGetProductFieldValueGets the product field value.  
Public Methodstatic (Shared in Visual Basic)GetProductsAndVariantsByProductGets the all products and variants with the same product ID and language ID as the given product.  
Public Methodstatic (Shared in Visual Basic)GetProductsByGroupOverloaded. Gets all language version of all products from the group.  
Public Methodstatic (Shared in Visual Basic)GetProductsByGroupIDOverloaded. Gets the product collection based on Group ID, containing active products only. Context.LanguageID is used.  
Public Methodstatic (Shared in Visual Basic)GetProductsByGroupsOverloaded. Gets the products from groups.  
Public Methodstatic (Shared in Visual Basic)GetProductsByNameAndLanguageGets the products collection by name and language.  
Public Methodstatic (Shared in Visual Basic)GetProductsByProductAndVariantIDGets the products.  
Public Methodstatic (Shared in Visual Basic)GetProductsByProductIDsOverloaded. Gets the products. Context.LanguageID is used.  
Public Methodstatic (Shared in Visual Basic)GetProductsByShopIDOverloaded. Gets products from shop. Context.LanguageID is used.  
Public Methodstatic (Shared in Visual Basic)GetProductsBySqlGets the ProductCollection object.  
Public Methodstatic (Shared in Visual Basic)GetProductsByVariantGroupGets the products.  
Public Methodstatic (Shared in Visual Basic)GetSqlConditionPartForIDsGets the condition part of a SQL statement.  
Public Methodstatic (Shared in Visual Basic)ProductVariantExistsIf variant exists return true.  
Public MethodRelatedCountFrontendGets the RelatedProducts counting.  
Public MethodRelatedProductsGets the related products. Related products are used to suggest a customer to buy complementary products to the products they want to buy, e.g. a shirt and a tie. Administrator can create relations in Management Center -> eCommerce settings -> Product catalog -> Related products.  
Public MethodRemoveGroupRemoves the group from the products Groups collection. Also deletes the ProductGroupRelation from the database if group.ID exists.  
Public MethodRemoveItemRemoves the item.  
Public MethodRemoveVariantGroupRemoves the variant group by object reference.  
Public MethodRemoveVariantGroupLoopRemoves the variant group by ID, LanguageID, Label and Name.  
Public MethodSaveOverloaded. Saves this instance.  
Public MethodSetCategoryValueOverloaded. Assigns category field value to the current product.  
Public MethodSetProductFieldValue  
Public Methodstatic (Shared in Visual Basic)UnitExistsDetermines whether unit exists.  
Public MethodUpdateCountersUpdates the variant and unit counters. Should be called after adding variants or units to a product through the API.  
Public Methodstatic (Shared in Visual Basic)UpdateDefaultVariantIDUpdates the default variant ID.  
Public Methodstatic (Shared in Visual Basic)UpdatePriceCountUpdates the price counter.  
Public Methodstatic (Shared in Visual Basic)UpdateStockOverloaded. Updates the stock.  
Public Methodstatic (Shared in Visual Basic)UpdateUnitCountUpdates the unit counter.  
Public Methodstatic (Shared in Visual Basic)UpdateVariantCountUpdates the variant counter.  
Top
See Also

Reference

Product Class
Dynamicweb.eCommerce.Products Namespace

Send Feedback