Click or drag to resize
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.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
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: ListProductVariant
See Also