I want to retrieve all customer data including the address information, customer custom attributes, and customer profile information. Right now i'm using customer model like this:
$collections = Mage::getModel('customer/customer')->getCollection();
foreach ($collections as $collection) {
$result[]= $collection->getData();
}
print_r($result);
form this i only get basic information like entity_id
, store_id
, created_at
, is_active
, and etc
. by using this i can't get even the customer personal information like telephone or at least customer name
Best Answer
you can get the customer details like below :
customer id here
load customer object
create customer address array
displaying the array
After getting the user’s address you will see something like this: