This topic describes how to raise event updates for prices and inventories when using the Episerver Find-Commerce integration (EPiServer.Find.Commerce). Events are raised when changes are made to prices and inventories, which trigger the indexing of updated content.
The default price service, PriceServiceDatabase, raises an event when a price is changed. This lets EPiServer.Find.Commerce re-index the variant content with updated prices.
Modify a custom price service to re-index variant contents when a price is updated.
The default inventory service, InventoryDatabase, raises an event when an inventory is changed. This makes it possible for EPiServer.Find.Commerce to re-index variant content with updated inventory information.
A custom inventory service needs to be modified to make it possible to reindex variant contents when an inventory is updated.
If the inventory is deleted, the event has an empty list of inventory, and a list of catalogkeys of deleted inventory.
Last updated: Oct 24, 2016