cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: how to insert data when submit product in backend?

Magento 2: how to insert data when submit product in backend?

I am a newbie for magento 2 and try to save data into custom table when user submit a product data in backend.

I tried to use di.xml and events.xml, but I still don't know when and where do this action insert the data into table.

Because there is basic on the exist page that is product submit page, not a new page to do it. 

So, I am confused the data flow.