VariantHelper.CreateVariant Method |
Creates new variant object (from product and options) without saving it.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntaxpublic static ProductVariant CreateVariant(
int productId,
ProductAttributeSet productAttributes
)
Parameters
- productId
- Type: System.Int32
The product ID. - productAttributes
- Type: CMS.Ecommerce.ProductAttributeSet
The product options.
Return Value
Type:
ProductVariantNew variant object.
See Also