Integrating with Connect
When you integrate products with Sitecore Commerce Connect using product synchronization you might have to customize the product domain model, although the default model will cover most scenarios and carry the needed information for presentation purposes. For more information on customizing the domain model, see The Object Domain Model.
There is a one-to-one relationship between the product item templates and the objects.
Implement a custom product entity
The domain model consists of a list of Sitecore product templates and the corresponding object type.
To implement a custom product entity:
-
Create a custom processor for each pipeline that reads data externally and stores it in an instance of the corresponding domain model object type, for which the pipeline is responsible.
-
If synchronization needs to go both ways, create the following two additional processors for each pipeline:
-
A processor that stores the product data externally. The product data will be given in an instance of the corresponding domain model object type, for which the pipeline is responsible.
-
A processor that resolves the differences and determines the resulting output. For more information, see Create a custom synchronization strategy.
NoteWhen reading data in the external system and populating an instance of a domain model entity, you must use unique names for entities of the same type so that there will be unique item names in Sitecore.
Without unique names, there is no guarantee that the items can be accessed. An example is resources, where two images with identical names for the same product will result in only one of them being shown on the website because Sitecore always selects the first item with a given name
-