<?php 
    if(!Mage::getSingleton('customer/session')->isLoggedIn()){
        //not logged in

    }else{

        // logged in        
       $customer_data=Mage::getSingleton('customer/session')->getCustomer();
       echo "<pre>" print_r($customer_data);
} ?>
Advertisements