Table of Contents

Class FieldInheritance

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll
The FieldInheritance class provides language/variant inheritance settings, hidden/readonly/required settings for product fields
public class FieldInheritance
Inheritance
FieldInheritance
Inherited Members

Methods

GetApplyHiddenForAdministratorsSetting()

Gets value for "ApplyHiddenForAdministrators" setting
public static bool GetApplyHiddenForAdministratorsSetting()

Returns

bool

GetApplyReadonlyForAdministratorsSetting()

Gets value for "ApplyReadonlyForAdministrators" setting
public static bool GetApplyReadonlyForAdministratorsSetting()

Returns

bool

GetFieldCheckSettingKeyFor(string, ProductFieldSectionType, FieldDifferentiationType)

Gets globalsettings key for field by name
public static string GetFieldCheckSettingKeyFor(string fieldName, ProductFieldSectionType fieldSection, FieldDifferentiationType differentiationType)

Parameters

fieldName string
Field name
fieldSection ProductFieldSectionType
The field section e.g. standart/custom/category
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

string

Remarks

For category fields field name should be "categoryId" + "." + "fieldId"

GetFieldCheckSettingKeyForCategoryField(Category, Field, FieldDifferentiationType)

Gets globalsettings key for category field
public static string GetFieldCheckSettingKeyForCategoryField(Category category, Field categoryField, FieldDifferentiationType differentiationType)

Parameters

category Category
The category of field
categoryField Field
The category field
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

string

GetFieldCheckSettingKeyForCategoryField(string, string, FieldDifferentiationType)

Gets globalsettings key for category field
public static string GetFieldCheckSettingKeyForCategoryField(string categoryId, string categoryFieldId, FieldDifferentiationType differentiationType)

Parameters

categoryId string
The category id of field
categoryFieldId string
The category field id
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

string

GetFieldCheckSettingKeyForProductField(ProductField, FieldDifferentiationType)

Gets globalsettings key for ProductField
public static string GetFieldCheckSettingKeyForProductField(ProductField productField, FieldDifferentiationType differentiationType)

Parameters

productField ProductField
The product field.
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

string

GetFieldSettingFor(string, ProductFieldSectionType, FieldDifferentiationType)

Gets setting value for field by name
public static bool GetFieldSettingFor(string fieldName, ProductFieldSectionType fieldSection, FieldDifferentiationType differentiationType)

Parameters

fieldName string
Field name
fieldSection ProductFieldSectionType
The field section e.g. standart/custom/category
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

bool

Remarks

For category fields field name should be "categoryId" + "." + "fieldId"

GetFieldSettingForCategoryField(Category, Field, FieldDifferentiationType)

Gets setting value for category field
public static bool GetFieldSettingForCategoryField(Category category, Field categoryField, FieldDifferentiationType differentiationType)

Parameters

category Category
The category of field
categoryField Field
The category field
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

bool

GetFieldSettingForCategoryField(string, string, FieldDifferentiationType)

Gets setting value for category field
public static bool GetFieldSettingForCategoryField(string categoryId, string categoryFieldId, FieldDifferentiationType differentiationType)

Parameters

categoryId string
The category id of field
categoryFieldId string
The category field id
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

bool

GetFieldSettingForProductField(ProductField, FieldDifferentiationType)

Gets setting value for ProductField
public static bool GetFieldSettingForProductField(ProductField productField, FieldDifferentiationType differentiationType)

Parameters

productField ProductField
differentiationType FieldDifferentiationType
The setting type e.g. language/variant/required/readonly/hidden

Returns

bool

GetShowProductIdFieldForNewProductsSetting()

Gets value for "ShowProductIdFieldForNewProducts" setting
public static bool GetShowProductIdFieldForNewProductsSetting()

Returns

bool
To top