How to get the logged in user details on phtml page – Magento

<?php
 $customer = Mage::getSingleton('customer/session')->getCustomer();
 $email = $customer->getEmail();// for email address
 $firstname = $customer->getFirstname();//  For first name
 $lastnam e= $customer->getLastname();// For last name
?>

2 thoughts on “How to get the logged in user details on phtml page – Magento”

  1. I might wish to thank you for that efforts youve got produced in writing this write-up. I am hoping the exact identical most effective get the task done from you within the potential also. In reality your creative composing skills has inspired me to start my particular BlogEngine web site now.

Leave a Reply to doudoututu Cancel reply

Your email address will not be published. Required fields are marked *