Customer repeat registration

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

  • Can you explain a bit more about your question? – Mohit Kumar Arora Aug 11 '16 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 Aug 19 '16 at 14:25

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

| improve this answer | |

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.';
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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