How to get logged in customer’s shipping/billing address?
We can get shipping or billing address of logged in customer via following statements.
$addressId = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling(); if ($addressId){ $address = Mage::getModel('customer/address')->load($addressId); }
All address information is now in $address variable you can use it.