VariantHelper GetAllPossibleVariants Method (Int32, IEnumerable Int32 )Kentico 8.0 API Reference
Gets all possible variants for specified product and all combinations (including existing variants) of options from categories.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

productId
Type: OnlineSystem Int32
The product ID.
optionCategoriesIds
Type: OnlineSystem.Collections.Generic IEnumerable OnlineInt32 
The option categories ids.

Return Value

Type: OnlineList ProductVariant 
Remarks

Please note, that some of returned objects are already stored in database (existing variants) and some not (all non-existing variants). To ensure that variant is already stored use Variant property CMS.Ecommerce.ProductVariant.Saved.
See Also