VariantHelperGenerateRemainingVariants Method |
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.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax protected virtual List<ProductVariant> GenerateRemainingVariants(
int productId,
List<ProductVariant> listOfVariants,
IEnumerable<int> optionCategoryIds
)
Parameters
- productId
- Type: SystemInt32
The product id. - listOfVariants
- Type: System.Collections.GenericListProductVariant
The list of variants that are already created, but doesn't need to be saved yet. - optionCategoryIds
- Type: System.Collections.GenericIEnumerableInt32
The option category ids. Must correspond with listOfVariants if specified.
Return Value
Type:
ListProductVariantSee Also