The VariantHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
VariantHelper |
Methods
Name | Description | |
---|---|---|
AddNewCategoriesToVariantsOfProduct |
Returns existing variants of specified product with added new categories specified with default options. Categories which are already included are ignored.
| |
AddNewCategoriesToVariantsOfProductInternal |
Returns existing variants of specified product with added new categories specified with default options. Categories which are already included are ignored.
| |
AreCategoriesUsedInVariants |
Checks if the specified categories are used in variants of specified product.
| |
AreCategoriesUsedInVariantsInternal |
Checks if the specified categories are used in variants of specified product.
| |
CreateVariant |
Creates new variant object (from product and options) without saving it.
| |
CreateVariantInternal |
Creates new variant object (from product and options) without saving it.
| |
DeleteAllVariants |
Deletes all variants one by one. If delete operation is successful for processing variant removeSucceededAction with variant ID as a parameter is launched.
| |
DeleteAllVariantsInternal |
Deletes all variants one by one. If delete operation is successful for processing variant removeSucceededAction with variant ID as a parameter is launched.
| |
DeleteVariant(Int32) |
Deletes the specified variant.
| |
DeleteVariant(ProductVariant) |
Deletes the specified variant.
| |
DeleteVariantInternal |
Deletes the specified variant.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateRemainingVariants |
Returns list of product variants with newly generated remaining combinations for specified product but with specified variants (listOfVariants) that doesn't need to be saved yet.
| |
GetAllPossibleVariants(List ProductVariant ) |
Gets all possible variants for specified set (Returns provided variants plus remaining combinations).
| |
GetAllPossibleVariants(Int32, IEnumerable Int32 ) |
Gets all possible variants for specified product and all combinations (including existing variants) of options from categories.
| |
GetAllPossibleVariantsCount |
Gets number of all variants, which can be generated including existing variants of options from categories.
| |
GetAllPossibleVariantsCountInternal |
Gets number of all variants, which can be generated including existing variants of options from categories.
| |
GetAllPossibleVariantsInternal(List ProductVariant ) |
Gets all possible variants for specified set (Returns provided variants plus remaining combinations).
| |
GetAllPossibleVariantsInternal(Int32, IEnumerable Int32 ) |
Gets all possible variants for specified product and all combinations (including existing variants) of options from categories.
| |
GetEnabledOptionsWithVariantOptions |
Gets options from option category assigned to sku which are enabled or already used in variants.
| |
GetEnabledOptionsWithVariantOptionsInternal |
Gets options from option category assigned to sku which are enabled or already used in variants.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetProductVariant |
Gets SKU object of product variant from parent product and options.
| |
GetProductVariantInternal |
Gets SKU object of product variant from parent product and options.
| |
GetProductVariantsCategories |
Gets the product variants categories for specified product.
| |
GetProductVariantsCategoriesInternal |
Gets the product variants categories for specified product.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUsedProductOptionCategories |
Gets enabled product option categories included disabled option categories used in product variants.
| |
GetUsedProductOptionCategoriesInternal |
Gets enabled product option categories included disabled option categories used in product variants.
| |
GetVariants |
Gets the variants of specified product.
| |
GetVariantsInternal |
Gets the variants of specified product.
| |
CheckAvailableProductAttributes |
Checks if specified product options are assigned to product and are allowed in it.
| |
CheckAvailableProductAttributesInternal |
Checks if specified product options are assigned to product and are allowed in it.
| |
CheckVariantCategoriesConsistency(Int32, ProductAttributeSet) |
Checks if specified product options contains all and only categories from existing variants of specified product.
| |
CheckVariantCategoriesConsistency(Int32, IEnumerable Int32 ) |
Checks if specified categories are used all and only in variants of specified product.
| |
CheckVariantCategoriesConsistencyInternal(Int32, ProductAttributeSet) |
Checks if specified product options contains all and only categories from existing variants of specified product.
| |
CheckVariantCategoriesConsistencyInternal(Int32, IEnumerable Int32 ) |
Checks if specified categories are used all and only in variants of specified product.
| |
CheckVariantOptions |
Checks if the variant options in specified variant corresponds with options determined in parent product.
| |
CheckVariantOptionsInternal |
Checks if the variant options in specified variant corresponds with options determined in parent product.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegenerateSKUNameAndNumber |
Regenerates the SKU name and number.
| |
RegenerateSKUNameAndNumberInternal |
Regenerates the SKU name and number.
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelper HelperType .) | |
SetProductVariant |
Saves this instance of product variant with specified product options to database.
| |
SetProductVariantInternal |
Saves this instance of product variant with specified product options to database.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
VariantExists |
Determines that variant for specified product with specified options exists.
| |
VariantExistsInternal |
Determines that variant for specified product with specified options exists.
|
Extension Methods
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
See Also