Click or drag to resize
VariantHelperAddNewCategoriesToVariantsOfProductInternal Method
Returns existing variants of specified product with added new categories specified with default options. Categories which are already included are ignored.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
protected virtual List<ProductVariant> AddNewCategoriesToVariantsOfProductInternal(
	int productId,
	ProductAttributeSet productAttributes
)

Parameters

productId
Type: SystemInt32
The product ID.
productAttributes
Type: CMS.EcommerceProductAttributeSet
Default product options (and their categories) to add.

Return Value

Type: ListProductVariant
See Also