Click or drag to resize
VariantHelperGetProductVariantsCategories Method
Gets the product variants categories for specified product.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static InfoDataSet<OptionCategoryInfo> GetProductVariantsCategories(
	int productId,
	bool onlyEnabled
)

Parameters

productId
Type: SystemInt32
Product ID.
onlyEnabled
Type: SystemBoolean
True - only enabled option categories are included, False - all option categories are included

Return Value

Type: InfoDataSetOptionCategoryInfo
Product option categories, that are used in specified product variants.
See Also