Can anyone help me to remove email validation form registration page in magento 2.3 or make it to non require field ?
I tried below things.
1) Remove "data-validate" for email in register.phtml file.
2) Make email as non require in "eav_attribute" table.
But still there is an error after i submit the registration form.
Error is "No such entity with email = , websiteId = 1".
Can anyone please help me ?
Thank you.
You need to change below file as well
Magento\Customer\Model\ResourceModel\CustomerRepository.php
Magento\Customer\Model\Customer.php
Go to the 'eav_attribute' table in magento database, Find for the 'email' in 'attribute_code' column and find 'is_required' column and set the value to 0.
Additionally to the above answer you can change the input type from type="email"
to type="text"
, then it will not be validated anymore as email.
@Manish Mittal I already modify the below files.
Magento\Customer\Model\ResourceModel\CustomerRepository.php
Magento\Customer\Model\Customer.php
I also tried to change 'email' in 'eav_attribute' table and set value to 0 in 'attribute_code' column.
I tried all solution which you have suggested.
But still error is coming.
Is there any other solutions ?
You are getting this cause of this line: