Click or drag to resize
VariantHelperAreCategoriesUsedInVariants Method
Checks if the specified categories are used in variants of specified product.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static bool AreCategoriesUsedInVariants(
	int productId,
	IEnumerable<int> optionCategoryIds
)

Parameters

productId
Type: SystemInt32
The product ID.
optionCategoryIds
Type: System.Collections.GenericIEnumerableInt32
The option category IDs.

Return Value

Type: Boolean
True if the specified categories are used in variants of specified product and false otherwise.
See Also