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
GetApplyReadonlyForAdministratorsSetting()
Gets value for "ApplyReadonlyForAdministrators" setting
public static bool GetApplyReadonlyForAdministratorsSetting()
Returns
GetFieldCheckSettingKeyFor(string, ProductFieldSectionType, FieldDifferentiationType)
Gets globalsettings key for field by name
public static string GetFieldCheckSettingKeyFor(string fieldName, ProductFieldSectionType fieldSection, FieldDifferentiationType differentiationType)
Parameters
fieldNamestring- Field name
fieldSectionProductFieldSectionType- The field section e.g. standart/custom/category
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
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
categoryCategory- The category of field
categoryFieldField- The category field
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
GetFieldCheckSettingKeyForCategoryField(string, string, FieldDifferentiationType)
Gets globalsettings key for category field
public static string GetFieldCheckSettingKeyForCategoryField(string categoryId, string categoryFieldId, FieldDifferentiationType differentiationType)
Parameters
categoryIdstring- The category id of field
categoryFieldIdstring- The category field id
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
GetFieldCheckSettingKeyForProductField(ProductField, FieldDifferentiationType)
Gets globalsettings key for ProductField
public static string GetFieldCheckSettingKeyForProductField(ProductField productField, FieldDifferentiationType differentiationType)
Parameters
productFieldProductField- The product field.
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
GetFieldSettingFor(string, ProductFieldSectionType, FieldDifferentiationType)
Gets setting value for field by name
public static bool GetFieldSettingFor(string fieldName, ProductFieldSectionType fieldSection, FieldDifferentiationType differentiationType)
Parameters
fieldNamestring- Field name
fieldSectionProductFieldSectionType- The field section e.g. standart/custom/category
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
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
categoryCategory- The category of field
categoryFieldField- The category field
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
GetFieldSettingForCategoryField(string, string, FieldDifferentiationType)
Gets setting value for category field
public static bool GetFieldSettingForCategoryField(string categoryId, string categoryFieldId, FieldDifferentiationType differentiationType)
Parameters
categoryIdstring- The category id of field
categoryFieldIdstring- The category field id
differentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
GetFieldSettingForProductField(ProductField, FieldDifferentiationType)
Gets setting value for ProductField
public static bool GetFieldSettingForProductField(ProductField productField, FieldDifferentiationType differentiationType)
Parameters
productFieldProductFielddifferentiationTypeFieldDifferentiationType- The setting type e.g. language/variant/required/readonly/hidden
Returns
GetShowProductIdFieldForNewProductsSetting()
Gets value for "ShowProductIdFieldForNewProducts" setting
public static bool GetShowProductIdFieldForNewProductsSetting()