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

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static SKUInfo GetProductVariant(
	int productId,
	ProductAttributeSet productAttributes
)

Parameters

productId
Type: SystemInt32
The product ID.
productAttributes
Type: CMS.EcommerceProductAttributeSet
The product options.

Return Value

Type: SKUInfo
SKU object.
See Also