Table of Contents

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

string

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

string

VariantId

Gets or sets the variant ID.

public string VariantId { get; set; }

Property Value

string

Methods

CompareTo(VariantCombination)

Compares one VariantCombination with another.

public int CompareTo(VariantCombination other)

Parameters

other VariantCombination

An object to compare with this instance.

Returns

int

variantCombiantionComparison

GetProduct(string)

Gets the product.

public Product GetProduct(string languageId)

Parameters

languageId string

Returns

Product

GetVariantName(string)

Gets the variant text.

public string GetVariantName(string languageId)

Parameters

languageId string

Returns

string

GetVariantOptionIds()

Gets the option ids of this variant.

public string[] GetVariantOptionIds()

Returns

string[]

optionIds

To top