Customer repeat registration

How to make the same name of the customer only once registered

  • Can you explain a bit more about your question? Commented Aug 11, 2016 at 7:39
  • There's a lot of people who have the same name? I would agree with @MohitKumarArora, could you explain a bit more?
    – Ang
    Commented Aug 19, 2016 at 14:25

2 Answers 2


Many people have the same name so I would strongly advise against trying to block users! If you believe your site is being targeted by bots I would suggest you implement Google Recaptcha on the register form


You can do so by checking whether any customer with same name exist or not. You can check the existence of customer by using onblur attribute on name field. To check the existence use following code.

 $name = 'John Doe';   //Name of customer comes here
            $customer = Mage::getModel('customer/customer')->getCollection()

                    echo 'Customer already exist.';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.