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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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?