Class Assortment
- Namespace
- Dynamicweb.Ecommerce.Assortments
- Assembly
- Dynamicweb.Ecommerce.dll
Assortment class.
[Serializable]
public class Assortment
- Inheritance
-
Assortment
- Inherited Members
Constructors
Assortment()
Creates an Assortment object with default property values.
public Assortment()
Properties
Active
Gets or sets a value indicating whether the Assortment is active.
public bool Active { get; set; }
Property Value
- bool
true
if active; otherwise,false
.
AllowAnonymousUsers
Gets or sets a value indicating whether the Assortment is available to anonymous uses.
public bool AllowAnonymousUsers { get; set; }
Property Value
- bool
true
if assortment is available to anonymous users; otherwise,false
.
GroupHierarchy
Gets the group hierarchy of assortment
public HashSet<string> GroupHierarchy { get; }
Property Value
GroupRelations
Gets the group relations of assortment
public Dictionary<string, AssortmentGroupRelation> GroupRelations { get; }
Property Value
HasRelations
Shows that assortment has any type of relation (product, group or shop relations)
public bool HasRelations { get; }
Property Value
ID
Gets or sets the the id of the Assortment.
public string ID { get; set; }
Property Value
- string
The identifier.
IncludeSubgroups
Gets or sets a value indicating whether the Assortment should include subgroups of selected groups when building the Assortment.
public bool IncludeSubgroups { get; set; }
Property Value
- bool
true
if subgroups are included; otherwise,false
.
Items
Gets the assortment items
public Dictionary<ProductKey, AssortmentItem> Items { get; }
Property Value
LastBuildDate
Gets the date and time when the Assortment was last built.
public DateTime? LastBuildDate { get; }
Property Value
- DateTime?
The last build date.
Permissions
Gets the assortment permissions
public Dictionary<int, AssortmentPermission> Permissions { get; }
Property Value
ProductRelations
Gets the product relations of assortment
public Dictionary<string, AssortmentProductRelation> ProductRelations { get; }
Property Value
RebuildRequired
Gets or sets a value indicating whether a rebuild of the Assortment is required.
public bool RebuildRequired { get; set; }
Property Value
- bool
true
if rebuild is required; otherwise,false
.
ShopRelations
Gets the shop relations of assortment
public Dictionary<string, AssortmentShopRelation> ShopRelations { get; }
Property Value
Translations
Gets the translations of assortment
public TranslationCollection<AssortmentTranslation> Translations { get; }
Property Value
Methods
GetName(string)
Gets the name of the assortment for the given language.
public string GetName(string languageId)
Parameters
languageId
stringLanguage id
Returns
GetNumber(string)
Gets the number of the assortment for the given language.
public string GetNumber(string languageId)
Parameters
languageId
stringLanguage id
Returns
SetName(string, string)
Sets the name of the assortment for the given language.
public void SetName(string languageId, string name)
Parameters
SetNumber(string, string)
Sets the number of the assortment for the given language.
public void SetNumber(string languageId, string number)