The products in the Ecommerce module can have variations. For example, if you have a T-Shirt as a product, you can have one and the same T-Shirt design in different sizes. In this case you can create a variations of the T-Shirt based on its size. To create variations based on the size, you must first create an attribute that represents the Size characteristic of the product and attribute values that represent the different sizes.
For more information about attributes, see the For developers: Product attributes section.
For more information about attribute values, see the For developers: Values of a product attribute section.
The variations are represented by the Telerik.Sitefinity.Ecommerce.Catalog.Model.ProductVariation class. The class exposes the following specific properties:
Gets or sets the unique ID of the variation.
Gets or sets the attribute-value pair for the variation.
Gets or sets the additional price for the variation.
Gets or sets the unique Stock keeping unit of the variation.
Indicates whether the variation is active.
Represents a list that contains the detail of the variation. The detail contains information about the attribute and its value that are associated to the variation.
Gets or sets the product that the variation belongs to.
For more information about the different actions involving variations, see the examples in the section below.