Magento Coding Solutions

get customer information by user Id in magento


 $session=Mage::getSingleton('customer/session', array('name'=>'frontend'));
//get current login user Id
$userId=$session->getId();

$cusotmer = Mage::getModel('customer/customer')->load($uid);
            $to = $cusotmer->getEmail();

No comments:

Post a Comment