Friday 4 July 2014

How to Get Customer Detail Using Email Id in Magento

$customer = Mage::getModel("customer/customer");
$customer->setWebsiteId(Mage::app()->getWebsite()->getId()); 
$customer->loadByEmail($customer_email);
//get customer id
$customerId = $customer->getId();
//get customer Email
$customerEmail = $customer->getEmail ();
//get customer First Name
$fname = $customer->getFirstname();
//get customer Last Name
$lname = $customer->getLastname();
//get customer Full Name
$fullname = $customer->getName();

No comments:

Post a Comment

List OF BANK PAN Numbers

List OF BANK PAN Numbers Bank/Home Loan Providers PAN Number Allahabad Bank AACCA8464F Andhra Bank AABCA7375C Axis Bank...