VariantHelper.VariantExistsInternal Method |
Determines that variant for specified product with specified options exists.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntaxprotected virtual bool VariantExistsInternal(
int productId,
ProductAttributeSet productAttributes,
bool onlyEnabled = true
)
Parameters
- productId
- Type: System.Int32
The product ID. - productAttributes
- Type: CMS.Ecommerce.ProductAttributeSet
The product options. - onlyEnabled (Optional)
- Type: System.Boolean
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