How to Check Customer email id is exist or not before registration in Magento?
When you need to add user programmatically from the Magento back-end then you must check whether the user email is already exist or not before registration. As Email ID are the primary mode of login function for the back-end processes for controlling.
You can check customer email id exists or not before registration programmatically 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"; }