How to get the loggedin user information in magento
November 16, 2010 | In: Magento, web development
In most cases we need to get the current logged in user information like his/her email address, Id, any other attributes value. then we can get this by below code :
//Customer Email Mage::getSingleton('customer/session')->getCustomer()->getEmail()); // Customer First name Mage::getSingleton('customer/session')->getCustomer()->getFirstName()); And also we can find the custom attribute values. |