Array of billing and shipping addresses

Tweet, share & co

tweet fb share g+ share

Tags


Description

use this code to get an array of billing address and shipping address

Code

$all_data = array();
$customer = Mage::getModel(‘customer/session’)->getCustomer();
foreach($customer->getAddressesCollection() as $customer_address)
{
$all_data[] = $customer_address;
}
var_dump($all_data);