I have created test attribute using install script it is successfully created.I have added attribute input field in register.phtml
When I register customer my custom attribute value won't save. Do I need to rewrite any model or create any plugin?
customer-attributemagento2
I have created test attribute using install script it is successfully created.I have added attribute input field in register.phtml
When I register customer my custom attribute value won't save. Do I need to rewrite any model or create any plugin?
Best Answer
I have solved it. I rewrite controller
Magento\Customer\Controller\Account\CreatePost
my
di.xml
code as below:Add below code in controller file code
Vendor\Modulename\Controller\Account\CreatePost.php