1.
通过email得到id的快速方法
$customer = Mage::getModel('customer/customer');
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$customer->loadByEmail("[email protected]");
//var_dump($customer);
$customerId = $customer->getEntityId();
customerId就是我们通过email、想要得到的id的值
2
通过id得到email,
$customer = Mage::getModel('customer/customer')->load(1); $customerFirstName = $customer->getFirstname();
$customerEmail = $customer->getEmail();
OK!通过上面的函数可以快速的得到您想要的客户的属性的值!