Click or drag to resize
VariantHelperGetUsedProductOptionCategories Method
Gets enabled product option categories included disabled option categories used in product variants.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static DataSet GetUsedProductOptionCategories(
	int productId,
	Nullable<OptionCategoryTypeEnum> categoryType = null
)

Parameters

productId
Type: SystemInt32
ID of product from which are option categories selected
categoryType (Optional)
Type: SystemNullableOptionCategoryTypeEnum
Type of option category which are selected

Return Value

Type: DataSet
DataSet with enabled option categories used in product plus disabled categories already used in variants.
See Also