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 For developers: Product variations section.
For more information about attribute values, see the For developers: Values of a product attribute section.
To manage product types and products, you must add the following using statements:
To manage departments, products, product types and product attributes, you use the Telerik.Sitefinity.Modules.Ecommerce.Catalog.CatalogManager class. To get an instance of the manager, use the following code:
CatalogManager catalogManager = CatalogManager.GetManager();
The attributes are represented by the Telerik.Sitefinity.Ecommerce.Catalog.Model.ProductAttribute class. The class exposes the following specific properties:
For more information about the different actions involving attributes, see the examples in the section below.
Back To Top