1
2
3
4
5
6
7
8
<?php 
    $session = Mage::getSingleton('customer/session');
        if($session->isLoggedIn()) {
        $customer = $session->getCustomer();
        echo $customer->getName();
        echo $customer->getFirstname();
    }
?>