Dynamicweb.eCommerce.Products Namespace : Product Class |
For a list of all members of this type, see Product members.
Name | Description | |
---|---|---|
AddGroup | Adds 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. | |
AddRelatedProduct | Adds a related product to this product and saves it to the database. | |
AddVariantGroup | Adds the variant group. | |
Clone | Clones this instance. | |
Copy | Copies this instance and saves it in the DB. This method like Clone method, but generates new ID and sets empty VariantID. | |
CopyAsVariant | Copies this instance and saves it in the DB. | |
Delete | Deletes 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. | |
Fill | Fills the properties from DataReader. | |
GetActiveProducts | Overloaded. Gets the active products. Context.LanguageID is used. | |
GetAllProducts | Overloaded. Gets all products. Context.LanguageID is used. | |
GetAllProductsByShopID | Gets all products from shop. No language filter is applied meaning all language version of all products in the shop are returned. | |
GetAllProductsWithoutVariants | Overloaded. Gets all products without variants. Context.LanguageID is used. | |
GetCalculatedFieldValues | ||
GetCategories | Get the Dynamicweb.eCommerce.Products.Categories.Category objects for each of the Dynamicweb.eCommerce.Products.Group this belongs | |
GetCategoryValue | Overloaded. Retrieves the value of the given category field. | |
GetCommaSeparatedProductIDs | Returns list of IDs. | |
GetProductByID | Overloaded. Gets the product by ID. | |
GetProductByNumber | Overloaded. Gets the product by number. | |
GetProductBySql | Overloaded. Gets the products by SQL. | |
GetProductFieldValue | Gets the product field value. | |
GetProductsAndVariantsByProduct | Gets the all products and variants with the same product ID and language ID as the given product. | |
GetProductsByGroup | Overloaded. Gets all language version of all products from the group. | |
GetProductsByGroupID | Overloaded. Gets the product collection based on Group ID, containing active products only. Context.LanguageID is used. | |
GetProductsByGroups | Overloaded. Gets the products from groups. | |
GetProductsByNameAndLanguage | Gets the products collection by name and language. | |
GetProductsByProductAndVariantID | Gets the products. | |
GetProductsByProductIDs | Overloaded. Gets the products. Context.LanguageID is used. | |
GetProductsByShopID | Overloaded. Gets products from shop. Context.LanguageID is used. | |
GetProductsBySql | Gets the ProductCollection object. | |
GetProductsByVariantGroup | Gets the products. | |
GetSqlConditionPartForIDs | Gets the condition part of a SQL statement. | |
ProductVariantExists | If variant exists return true . | |
RelatedCountFrontend | Gets the RelatedProducts counting. | |
RelatedProducts | Gets 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. | |
RemoveGroup | Removes the group from the products Groups collection. Also deletes the ProductGroupRelation from the database if group.ID exists. | |
RemoveItem | Removes the item. | |
RemoveVariantGroup | Removes the variant group by object reference. | |
RemoveVariantGroupLoop | Removes the variant group by ID, LanguageID, Label and Name. | |
Save | Overloaded. Saves this instance. | |
SetCategoryValue | Overloaded. Assigns category field value to the current product. | |
SetProductFieldValue | ||
UnitExists | Determines whether unit exists. | |
UpdateCounters | Updates the variant and unit counters. Should be called after adding variants or units to a product through the API. | |
UpdateDefaultVariantID | Updates the default variant ID. | |
UpdatePriceCount | Updates the price counter. | |
UpdateStock | Overloaded. Updates the stock. | |
UpdateUnitCount | Updates the unit counter. | |
UpdateVariantCount | Updates the variant counter. |