• We are available for any Development work:
  • Email us at: programmer_heart@yahoo.com

Getting informayion of customer in Magento

How you would get customer info and billing address  is explained below :
/** var $session Mage_Customer_Model_Session */
$session = Mage::getSingleton(‘customer/session’);

/** var $customer Mage_Customer_Model_Customer */
$customer = $session->getCustomer();

/** var $address Mage_Customer_Model_Address */
$address = $customer->getPrimaryBillingAddress();

Leave a Reply

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

Current day month ye@r *

Press Enter to Search