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.
Leave a Reply