Product variations

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:

  • Id
    Gets or sets the unique ID of the variation.
  • Variant
    Gets or sets the attribute-value pair for the variation.
  • AdditionalPrice
    Gets or sets the additional price for the variation.
  • Sku
    Gets or sets the unique Stock keeping unit of the variation.
  • IsActive
    Indicates whether the variation is active.
  • ProductVariationDetail
    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.
  • Parent
    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.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?