Click or drag to resize
VariantHelperGetProductVariantInternal Method
Gets SKU object of product variant from parent product and options.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual SKUInfo GetProductVariantInternal(
	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: SKUInfo
SKU object.
See Also