Class VariantGroup
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
A variant group that hold variant options
- Inheritance
-
Variant
Group
- Implements
- Inherited Members
Constructors
VariantGroup()
Initializes a new instance of the Variant
Properties
Family
Gets or sets a value indicating whether this Variant
Property Value
- bool
true
if family, otherwise,false
.
Id
Gets or sets the id.
Property Value
Translations
Gets the translations
Property Value
VariantDisplayType
Property Value
Methods
Equals(VariantGroup)
Indicates whether the current object is equal to another object of the same type.
Parameters
group
VariantGroup
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
Parameters
obj
objectThe object to compare with the current object.
Returns
GetAllVariantOptions()
Gets all variant options for this group.
Returns
- IList<Variant
Option > variantOptions
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
GetLabel(string)
Gets the label of the variant group for the given language.
Parameters
languageId
stringLanguage id
Returns
GetName(string)
Gets the name of the variant group for the given language.
Parameters
languageId
stringLanguage id
Returns
GetProperties()
Gets the properties of this group.
Returns
- IList<Variant
Group >Property properties
GetVariantGroupProductRelations()
Gets all product relations.
Returns
- IEnumerable<Variant
Group >Product Relation productsRelations
GetVariantOptions(string)
Gets all existing variant options from this group, for the specified product.
Parameters
productId
stringId of product
Returns
- IList<Variant
Option > variantOptions
SetLabel(string, string)
Sets the label of the variant group for the given language.
Parameters
SetName(string, string)
Sets the name of the variant group for the given language.