VariantHelperGetAllPossibleVariants Method (Int32, IEnumerableInt32) |
Gets all possible variants for specified product and all combinations (including existing variants) of options from categories.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax public static List<ProductVariant> GetAllPossibleVariants(
int productId,
IEnumerable<int> optionCategoriesIds
)
Parameters
- productId
- Type: SystemInt32
The product ID. - optionCategoriesIds
- Type: System.Collections.GenericIEnumerableInt32
The option categories ids.
Return Value
Type:
ListProductVariantRemarks
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