Defining Product Attributes
Product attributes specify properties of products. They are used to describe a product and to hold related information. A product attribute has a name and a value. For example, the value of the attribute color is blue. The SAP Commerce provides different modeling methods for defining product attributes: typing and classification.
Selecting the Method
When starting a new SAP Commerce PCM (Product Content Management) or eCommerce project, a consultant or developer investigates the existing product attributes and sketches a modeling strategy for defining product attributes in SAP Commerce. Most attributes can be defined the same as in an existing customer system. For some specific or new attributes, the consultant decides on the best method of attribute definition with regard to the customer requirements and the business context.
The attribute modeling method has no direct impact on the end user of a web shop front end. But, it has important consequences for relating any business logic, data base loading, and the ease of set-up and modification of attributes. Thus, the definition method for an attribute can be worth a careful evaluation.
Comparison of Typing and Classification
This table lists important criteria for comparing methods of product attribute definition.
|
Criteria |
Typing |
Classification |
|---|---|---|
|
Character |
Basic method |
Advanced method |
|
Use Case |
Recommended for static product attributes that are used in business logic like calculations. Frequently used for PCM projects. |
Recommended for changeable product attributes that are not to be used in business logic. Frequently used for eCommerce projects. |
|
Examples |
Article number is unchangeable. Sales unit to be used for calculations of shipping costs. |
Resolution is merely a data sheet information gathered from a supplier to be transferred for display. Microphone: The existence of a microphone being part of a product. |
|
Applicable to |
All data types. |
Products only. |
|
Scope |
All instances of a type, for example for all instances of a subtype. |
Easy and dynamic application for selected products or categories, for example. |
|
Requirement |
None |
1. A category tree defining a product structure. 2. A classification system providing available product attributes that can be assigned to categories and products. |
|
Performance Implication |
Less load on database. |
More load on database. |
|
Typical User |
Developer |
Product/Purchasing Manager Marketing Manager |
|
Modification |
Complex adaptation to new requirements by coding. |
Easy adaptation in the platformbackoffice extension, or by CSVfile import. |
|
Outcome |
Type attribute |
Category feature, also referred to as classification attribute. |
|
Display in Backoffice |
Any position on Product tabs can be configured. |
By default on the Product Attribute tab. Modification of display more complex. |
|
Technique |
A type attribute typically is defined either by runtime types (not recommended!) or in an extension items.xml file. |
A category feature is defined in Backoffice as part of a classifying category. Such a classifying category can be assigned to several products. The assignment to a product category with the consequence that all products of the category and its subcategories hold the category feature is more efficient. |
|
Restriction |
No multi-inheritance is possible. Each type attribute has to be configured separately. |
Multiple assignment is possible. Through classifying categories, you can assign a category feature to one or multiple product categories. |
|
Read More |
The Type System: See section Adding New Attributes to a Type. |