The product attributes are used together with the variations of a product. Each attribute represents a characteristic of the product that can have different values. For example, such characteristic is the color of a product. If you want to create a variation based on the color, first you have to create an attribute with a value for each of the available colors.
For more information about variations, see the Product variations section.
For more information about attribute values, see the Product attribute values section.
The attributes are represented by the Telerik.Sitefinity.Ecommerce.Catalog.Model.ProductAttribute class. The class exposes the following specific properties:
Gets or sets the unique Guid of the attribute.
Gets or sets the programmatic name of the attribute.
Gets or sets the title of the attribute.
Indicates whether the attribute is active and can be used.
Represents a collection that contains information regarding the product types that the product attribute is applied to.
Gets the total count of product type that the attribute is applied to.
Represents a collection that contains the values of the product attribute.
Gets the total count of the values of the attribute.
Gets or sets whether the attribute is applied to all product types or only to some of them. To apply to all product types, use a value of “0”. To apply to specified product types, use a value of “1” and populate the ProductTypes collection.
For more information about the different actions involving attributes, see the examples in the section below.
In this section you can find the following code examples: