I have created a customer attribute mobile
and include it with customer sign up form. Cutomer sign up is works also for mobile number and customer mobile number is save in database at the time of sign up.
But I want to set email and mobile both unique for customer sign up.
For this I have override createPostAction() function of customer/AccountController.php file.
What condition I have to put in this function to check unique email_id and mobile_number for customer?
Best Answer
First override Customer Resource model
app\code\core\Mage\Customer\Model\Resource\Customer.php
in localAfter replace code from
TO