Skip to content

Instantly share code, notes, and snippets.

@ivandoric
Created April 23, 2014 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivandoric/11212211 to your computer and use it in GitHub Desktop.
Save ivandoric/11212211 to your computer and use it in GitHub Desktop.
magento: Echo out Name of the user
<?php
$session = Mage::getSingleton('customer/session');
if($session->isLoggedIn()) {
$customer = $session->getCustomer();
echo $customer->getName();
echo $customer->getFirstname();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment