I want to get information of customer by email id, so i create a method in controller with content:
public function showAction(){
$customer_email = "[email protected]";
$customer = Mage::getModel("customer/customer");
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$customer->loadByEmail($customer_email);
echo $customer->getId();
echo $customer->getFirstName();
echo $customer->getEmail();
}
but when run it return null value, i don't know why?. please help me
setWebsiteId()
call ? – Largess