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.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntaxprotected 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