Class AssortmentProductRelation
- Namespace
- Dynamicweb.Ecommerce.Assortments
- Assembly
- Dynamicweb.Ecommerce.dll
Assortment product relation class
[Serializable]
public class AssortmentProductRelation : AssortmentRelation
- Inheritance
-
AssortmentProductRelation
- Inherited Members
Constructors
AssortmentProductRelation()
Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation()
AssortmentProductRelation(Assortment)
Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation(Assortment assortment)
Parameters
assortmentAssortmentThe assortment.
AssortmentProductRelation(Assortment, Product)
Initializes a new instance of the AssortmentProductRelation class.
[SetsRequiredMembers]
public AssortmentProductRelation(Assortment assortment, Product product)
Parameters
assortmentAssortmentThe assortment.
productProductThe product.
AssortmentProductRelation(string)
Initializes a new instance of the AssortmentProductRelation class.
public AssortmentProductRelation(string assortmentID)
Parameters
assortmentIDstringThe assortment identifier.
AssortmentProductRelation(string, string, string?)
Initializes a new instance of the AssortmentProductRelation class.
[SetsRequiredMembers]
public AssortmentProductRelation(string assortmentID, string productID, string? productVariantID)
Parameters
assortmentIDstringThe assortment identifier.
productIDstringThe product identifier.
productVariantIDstringThe product variant identifier.
Properties
Excluded
Gets or sets whether the product should be excluded from the assortment.
public bool Excluded { get; set; }
Property Value
Product
Gets the product.
public Product Product { get; }
Property Value
- Product
The product.
ProductID
Gets or sets the product identifier.
public required string ProductID { get; set; }
Property Value
- string
The product identifier.
ProductVariantID
Gets or sets the product variant identifier.
public string? ProductVariantID { get; set; }
Property Value
- string
The product variant identifier.