-
-
Save manojiksula/590fe453d1642dbe0735ccf35e6f23cd to your computer and use it in GitHub Desktop.
Magento Customer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$customer_email = "customer@example.com"; | |
$customer = Mage::getModel("customer/customer"); | |
$customer->setWebsiteId(Mage::app()->getWebsite()->getId()); | |
$customer->loadByEmail($customer_email); //load customer by email id | |
//use | |
echo $customer->getId(); | |
echo $customer->getFirstName(); | |
//print_r($customer->getData()); to find all the available elements. | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment