Skip to content

Magento: Load Customer Data by Email

this how i did it, load customer array data by email

$email = “[email protected]”;
$customer = Mage::getModel(“customer/customer”);
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$customer->loadByEmail($email);
/*—print the object array–*/
print_r($customer->getData());

Share

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *