OptionCategoryInfoProviderGetProductOptionCategories Method |
Returns DataSet with all option categories which are assigned to the specified product.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntaxpublic static ObjectQuery<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:
ObjectQueryOptionCategoryInfo
See Also