VariantHelper Methods |
The VariantHelper type exposes the following members.
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.
| |
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(ListProductVariant) |
Gets all possible variants for specified set (Returns provided variants plus remaining combinations).
| |
GetAllPossibleVariants(Int32, IEnumerableInt32) |
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(ListProductVariant) |
Gets all possible variants for specified set (Returns provided variants plus remaining combinations).
| |
GetAllPossibleVariantsInternal(Int32, IEnumerableInt32) |
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.
| |
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.
| |
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, IEnumerableInt32) |
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, IEnumerableInt32) |
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.
| |
RegenerateSKUNameAndNumber |
Regenerates the SKU name and number.
| |
RegenerateSKUNameAndNumberInternal |
Regenerates the SKU name and number.
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.) | |
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.
| |
VariantExists |
Determines that variant for specified product with specified options exists.
| |
VariantExistsInternal |
Determines that variant for specified product with specified options exists.
|
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.) |