_shoppingService.SetCustomer doesn't raise CustomerInfo update event

Matthew Butler asked on November 3, 2022 16:17

The _shoppingService.SetCustomer creates or updates a customer, but it doesn't raise an update event on the CustomerInfo object.

Sorry to raise these here, is there a better place to submit?



Correct Answer

Dmitry Bastron answered on November 7, 2022 08:48

Hi Matthew,

Under the hood this service uses CustomerInfoProvider.Set(..) method, which will not fire Update event in case you are passing a new customer object vs updating the existing one. In this case it will raise Create event. Hook into Create event as well and check if that happens.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.