What classes/methods to hook up to do an action after customer's profile is updated?

magento.stackexchange https://magento.stackexchange.com/questions/145526

  •  04-10-2020
  •  | 
  •  

سؤال

I intend to make a call to an API endpoint after a customer's profile information, such as name, date of birth, etc, are updated. The update can be done either by the admin through the admin panel or by the user himself through his account on the frontend.

I'm very new to Magento2. I read up on Magento2 modules and if I understood correctly, it seems like I could do this by hooking up my method with the relevant core classes in the di.xml and create my own after*() method. If this is the case, which are the classes and methods should I be hooking up with to do something after a customer's profile information is updated?

هل كانت مفيدة؟

المحلول

Following class is responsible for update customer information from frontend my account Go to class

Check execute() method.

This line is responsible for save/update customer information

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top