Create a custom synchronization strategy
Version:
To use a custom synchronization strategy:
-
Create a new custom strategy class and implement the
ISynchronizationStrategyinterface.This interface contains one
Resolvemethod that receives the direction of synchronization and a base product entity from the external system and Sitecore.The
Resolvemethod decides which system to update ( theECS or Sitecore) and returns the result. -
Register a custom synchronization strategy class in the
Sitecore.Commerce.Products.configfile.To do this, change the type attribute value of the
synchronizationStrategyelement to custom synchronization strategy type.