Class Group
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Product group class
[Serializable]
[PermissionEntity("ProductGroup")]
public class Group : IDisplayName, IPermissionEntity, IPermissionEntityLookup
- Inheritance
-
Group
- Implements
- Inherited Members
- Extension Methods
Constructors
Group()
Initializes new instance of the class.
public Group()
Properties
CategoryFieldValues
public Dictionary<string, FieldValueCollection> CategoryFieldValues { get; set; }
Property Value
CategoryId
Gets or sets the default category id
public string CategoryId { get; set; }
Property Value
CompletenessOnAllCategoryFields
Gets or sets value indicating whether to include all category fields to completeness calculation.
public bool CompletenessOnAllCategoryFields { get; set; }
Property Value
CompletionLanguages
Gets Language collection used for calculating the shop product completeness value.
public IEnumerable<Language> CompletionLanguages { get; }
Property Value
- IEnumerable<Language>
Return Language collection
CompletionRules
Gets rules collection used for calculating the group product completeness value.
public IEnumerable<CompletionRule> CompletionRules { get; }
Property Value
- IEnumerable<CompletionRule>
Return CompletionRule collection
Remarks
To assign rules to a group use AssignRulesToGroup(Group, IEnumerable<CompletionRule>, IEnumerable<string>)
Description
Gets or sets the group description.
public string Description { get; set; }
Property Value
Icon
Gets or sets the group icon.
public string Icon { get; set; }
Property Value
Id
Gets or sets the group ID.
public string Id { get; set; }
Property Value
InheritCategoryFieldsFromParent
Gets or sets value indicating whether to inherit product category fields from parent group[s].
public bool InheritCategoryFieldsFromParent { get; set; }
Property Value
Remarks
When property is true, the group should inherit Product Category field from parents(in a direct line). If the group both have selected a product category And have the 'Inherit fields from parents', the set of fields which is available in the group, should a be a the combined set of fields from the selected Product Category and all product category fields from the parent. Also the fields from the parents parent, if it is set to inherit field.
InheritOrderLineFields
Determines whether order line fields should be included from parent groups or not.
public bool InheritOrderLineFields { get; set; }
Property Value
LanguageId
Gets or sets the language ID.
public string LanguageId { get; set; }
Property Value
LargeImage
Gets or sets the large group image.
public string LargeImage { get; set; }
Property Value
ManufacturerId
Gets or sets the default value for manufacturer ID property of child products.
public string ManufacturerId { get; set; }
Property Value
Meta
Gets or sets meta data.
public GroupMetaData Meta { get; set; }
Property Value
Name
Gets or sets the group name.
public string Name { get; set; }
Property Value
NavigationClickable
Determines whether the current group is clickable in navigation.
public bool NavigationClickable { get; set; }
Property Value
NavigationShowInMenu
Determines whether group should be shown in navigation menu or not.
public bool NavigationShowInMenu { get; set; }
Property Value
NavigationShowInSiteMap
Determines whether group should be shown in site map or not.
public bool NavigationShowInSiteMap { get; set; }
Property Value
Number
Gets or sets the group number.
public string Number { get; set; }
Property Value
ProductGroupFieldValues
Gets or sets the list of custom fields values.
public ProductGroupFieldValueCollection ProductGroupFieldValues { get; set; }
Property Value
ProductRelationRuleField1
Condition field to make it possible to automatically assign products to one or more groups.
public string ProductRelationRuleField1 { get; set; }
Property Value
ProductRelationRuleField2
Condition field to make it possible to automatically assign products to one or more groups.
public string ProductRelationRuleField2 { get; set; }
Property Value
ProductRelationRuleValue1
Condition value to make it possible to automatically assign products to one or more groups.
public string ProductRelationRuleValue1 { get; set; }
Property Value
ProductRelationRuleValue2
Condition value to make it possible to automatically assign products to one or more groups.
public string ProductRelationRuleValue2 { get; set; }
Property Value
RelatedGroupIds
Gets the string with list of related groups. Related groups are used as default list of related groups for child products.
public string RelatedGroupIds { get; set; }
Property Value
- string
Related group ids, delimited by "#;#"
ShopId
Gets or sets the ID of shop for current group.
public string ShopId { get; set; }
Property Value
SmallImage
Gets or sets the small group image.
public string SmallImage { get; set; }
Property Value
StockGroupId
Gets or sets the default value for stock group ID property of child products.
public string StockGroupId { get; set; }
Property Value
Type
Gets or sets the group type GroupType.
public GroupType Type { get; set; }
Property Value
WorkflowId
Gets or sets the id of the workflow for products in the product group.
public int WorkflowId { get; set; }
Property Value
- int
The workflow identifier.
Methods
Clone()
Creates in-memory copy of current group.
public Group Clone()
Returns
- Group
The copy of the group.
GetDisplayName()
Yields a human-readable name for rendering.
public string GetDisplayName()
Returns
- string
name
SetCategoryFieldValue(Field, object)
public bool SetCategoryFieldValue(Field field, object value)