Showing posts with label How to check customer email id is exist or not before registration in Magento?. Show all posts
Showing posts with label How to check customer email id is exist or not before registration in Magento?. Show all posts

Friday, 12 May 2017

How to check customer email id is exist or not before registration in Magento?


You can check customer email id is exist or not before registration in Magento by following code.


          $customer = Mage::getModel('customer/customer');
                $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
                $customer->loadByEmail($customer_email);

                if($customer->getId())
                {
                  echo "Customer Exist";
                }