The following chapter is designed for developers (integrators and contributors) and provides all information needed to create quick overview and understanding of how product data is kept in PIM.
The data model is structured as Entity - Attribute - Value (i.e. Product - Attribute - ProductValue).
The Product entity (
Pim\Component\Catalog\Model\Product) has many ProductValues (
Pim\Component\Catalog\Model\ProductValue) that are linked to different Attributes and hold value information depending on specific attribute they are related too.
The main entity is the product which,
- has values;
- belongs to a family;
- is positioned in many categories.
For information on how to import/export categories using CSV format see Category data structure.
Each product value is linked to a product, an attribute and some additional entities related to (media, metrics, options, etc). Each product has many product values that represent information about it according to their attribute type.
For information on how to import/export product using CSV format see Product data structure.
The attribute determines the data type and properties of a product value according to its type definition.
Attributes are combined in attribute groups.
An attribute with an activated localized property has different values for each locale, eg: French and English
A scoped attribute has different value for each channel, eg: e-commerce and mobile
An attribute can be localized and scoped, and therefore have different values for each combination of locale and channel, eg: e-commerce - French, e-commerce - English, etc.
Any attribute belongs to attribute type that determines its definition and product value data type and definition.
Many attributes may refer to the same attribute type.
Each attribute type supports some general and special properties.
Akeneo PIM provides built in set of attribute types:
|(!!) Only one attribute of this type is allowed. Product identification attribute: it may be sku, erp product id or any other.
|Boolean value: Yes/No i.e. True/False.
|Represents any number value. For example stock quantity.
|Allow to holds collection of numbers according to currency settings.
|Extends number and also allows to holds information about metric family and unit.
|Text field. Holds any text/varchar data.
|The same as text but longer and field may be represented as wysiwyg editor.
|Extends text and linked to media (FileInfoInterface). Allows to upload file of specific type.
|The same as file. Allows uploading image/png, image/jpg file types, and is represented as image.
|Any date information: expiration date, available on, etc.
|Select field that holds single user predefined attribute option.
|Select field that holds multiple user predefined attribute options.
For information on how to import/export product attributes using CSV format see Attribute data structure.
Family and Completeness¶
The product family represents products prototype (architype, superclass), imposes product information structure and defines the list of attributes for product that belongs to it. These attributes can be mandatory or not. Additional attributes that don’t belong to the family may be added to concrete product as optional.
An attribute may be global or scoped to specific channel. For example attribute may be required for e-commerce but not for mobile channel.
The calculation of the completeness is based on the mandatory attributes of the product family. Each combination channel/locale has its own completeness calculation.
For information on how to import/export families using CSV format see Family data structure.
Found a typo or a hole in the documentation and feel like contributing?
Join us on Github!