Magento2 – Add Data from Custom Module to Core Database

customerdatabasemagento2PHP

If I want to insert form data in to the "customer_entity" table How can we achieve that?

I have mentioned all fields in the form as "create an account", and rather than creating a new table in the database I want to insert the data in the Magento's core customer table.

Thanks for help in advance !!

Best Answer

You need to do the following things.

  1. When that data post, you need to create customer programmatically so you do not want to make the entry manually on the relevant table.

To create customer programmatically, you can read this article : https://magecomp.com/blog/create-customer-programmatically-magento-2/