Is it possible to setup a hook that will get control when product is being updated?
I mean something like global hook that can handle:
- product update in CMS
- product update in Commerce Manager
- product update via API
Is Mediachase.Commerce.Catalog.EventContext suitable for ?
How cna I handle update event and update some "calculated" fields in product?
The recommended way in EPiServer 7.5 is to use the IContent model for all work with the catalog and hock up the DataFactory events.
The old commerce logger still works for commerce manager defined in ecf.catalog .config (replace CatalogLogger with your own)
<add type="Mediachase.Commerce.Catalog.Loggers.CatalogLogger, Mediachase.Commerce" />