Class VariantCombination
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
A combination of variant options on a product
[Serializable]
public class VariantCombination : IComparable<VariantCombination>
- Inheritance
-
VariantCombination
- Implements
- Inherited Members
Constructors
VariantCombination()
Initializes a new instance of the VariantCombination class.
public VariantCombination()
Fields
CombinationTextSeparator
public const string CombinationTextSeparator = " - "
Field Value
Properties
HasRowInProductTable
Indicates if the given variantcombination has an extended product or is simple (eg. if it has a productrow in the database table).
public bool HasRowInProductTable { get; }
Property Value
- bool
hasRowInProductTable
ProductId
Gets or sets the product ID.
public string ProductId { get; set; }
Property Value
VariantId
Gets or sets the variant ID.
public string VariantId { get; set; }
Property Value
Methods
CompareTo(VariantCombination)
Compares one VariantCombination with another.
public int CompareTo(VariantCombination other)
Parameters
other
VariantCombinationAn object to compare with this instance.
Returns
- int
variantCombiantionComparison
GetProduct(string)
Gets the product.
public Product GetProduct(string languageId)
Parameters
languageId
string
Returns
GetVariantName(string)
Gets the variant text.
public string GetVariantName(string languageId)
Parameters
languageId
string
Returns
GetVariantOptionIds()
Gets the option ids of this variant.
public string[] GetVariantOptionIds()
Returns
- string[]
optionIds