Table of Contents

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

Dictionary<string, FieldValueCollection>

CategoryId

Gets or sets the default category id

public string CategoryId { get; set; }

Property Value

string

CompletenessOnAllCategoryFields

Gets or sets value indicating whether to include all category fields to completeness calculation.

public bool CompletenessOnAllCategoryFields { get; set; }

Property Value

bool

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

Description

Gets or sets the group description.

public string Description { get; set; }

Property Value

string

Icon

Gets or sets the group icon.

public string Icon { get; set; }

Property Value

string

Id

Gets or sets the group ID.

public string Id { get; set; }

Property Value

string

InheritCategoryFieldsFromParent

Gets or sets value indicating whether to inherit product category fields from parent group[s].

public bool InheritCategoryFieldsFromParent { get; set; }

Property Value

bool

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

bool

LanguageId

Gets or sets the language ID.

public string LanguageId { get; set; }

Property Value

string

LargeImage

Gets or sets the large group image.

public string LargeImage { get; set; }

Property Value

string

ManufacturerId

Gets or sets the default value for manufacturer ID property of child products.

public string ManufacturerId { get; set; }

Property Value

string

Meta

Gets or sets meta data.

public GroupMetaData Meta { get; set; }

Property Value

GroupMetaData

Name

Gets or sets the group name.

public string Name { get; set; }

Property Value

string

NavigationClickable

Determines whether the current group is clickable in navigation.

public bool NavigationClickable { get; set; }

Property Value

bool

NavigationShowInMenu

Determines whether group should be shown in navigation menu or not.

public bool NavigationShowInMenu { get; set; }

Property Value

bool

NavigationShowInSiteMap

Determines whether group should be shown in site map or not.

public bool NavigationShowInSiteMap { get; set; }

Property Value

bool

Number

Gets or sets the group number.

public string Number { get; set; }

Property Value

string

ProductGroupFieldValues

Gets or sets the list of custom fields values.

public ProductGroupFieldValueCollection ProductGroupFieldValues { get; set; }

Property Value

ProductGroupFieldValueCollection

ProductRelationRuleField1

Condition field to make it possible to automatically assign products to one or more groups.

public string ProductRelationRuleField1 { get; set; }

Property Value

string

ProductRelationRuleField2

Condition field to make it possible to automatically assign products to one or more groups.

public string ProductRelationRuleField2 { get; set; }

Property Value

string

ProductRelationRuleValue1

Condition value to make it possible to automatically assign products to one or more groups.

public string ProductRelationRuleValue1 { get; set; }

Property Value

string

ProductRelationRuleValue2

Condition value to make it possible to automatically assign products to one or more groups.

public string ProductRelationRuleValue2 { get; set; }

Property Value

string

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

string

SmallImage

Gets or sets the small group image.

public string SmallImage { get; set; }

Property Value

string

StockGroupId

Gets or sets the default value for stock group ID property of child products.

public string StockGroupId { get; set; }

Property Value

string

Type

Gets or sets the group type GroupType.

public GroupType Type { get; set; }

Property Value

GroupType

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)

Parameters

field Field
value object

Returns

bool
To top