skip to Main Content

I am new to Magento 2. Can any one tell me how to save contact us form data into the database using events and observers, and display them in admin grid under the customer section in Magento 2?

2

Answers


  1. If you have set SMPT to your magento2 store then you will receive conatct us data to mail id which you mention at Stores->Configuration->General->Contacts->Email Option->Send Emails to.

    On this if you wish to show at admin grid, you must create your own table and grid to show the data in admin and create a before plugin to the controller MagentoContactControllerIndexPost where you save data into your table you created.

    Login or Signup to reply.
  2. You must create a separate module for the contact us a table, admin grid and forms.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search