| VariantHelperVariantExists Method  | 
            Determines that variant for specified product with specified options exists.
            
 
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntaxpublic static bool VariantExists(
	int productId,
	ProductAttributeSet productAttributes,
	bool onlyEnabled = true
)
Parameters
- productId
 - Type: SystemInt32
The product ID. - productAttributes
 - Type: CMS.EcommerceProductAttributeSet
The product options. - onlyEnabled (Optional)
 - Type: SystemBoolean
If set to true [process only enabled variants]. 
Return Value
Type: 
Boolean
            True if variant for specified product with specified options exists and false otherwise.
            
See Also