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: 12.0.0
Syntax 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:
ListProductVariantSee Also