Take a look at the helper class: Mage_Customer_Helper_Data strong>
To just get the customer name, you can write the following code: -
$customerName = Mage::helper('customer')->getCustomerName();
For more information about client object identifier, site identifier, email, etc. you can use the getCustomer function. The following code shows what you can get from it: -
echo "<pre>"; print_r(Mage::helper('customer')->getCustomer()->getData()); echo "</pre>";
From the helper class, you can also get information about the login URL, registration URL, exit URL, etc.
In the isLoggedIn function in the helper class, you can also check if the client is registered or not.
Mukesh Chapagain Feb 27 '11 at 18:08 2011-02-27 18:08
source share