Click or drag to resize
OptionCategoryInfoProviderGetProductOptionCategories Method
Returns DataSet with all option categories which are assigned to the specified product.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public static InfoDataSet<OptionCategoryInfo> GetProductOptionCategories(
	int skuId,
	bool onlyEnabled,
	Nullable<OptionCategoryTypeEnum> categoryType = null
)

Parameters

skuId
Type: SystemInt32
Product ID
onlyEnabled
Type: SystemBoolean
True - only enabled option categories are included, False - all option categories are included
categoryType (Optional)
Type: SystemNullableOptionCategoryTypeEnum
Type of option category. Allows to filter only categories of specific type.

Return Value

Type: InfoDataSetOptionCategoryInfo
See Also