I need to export customers into a excel format cvs would be ok.

I tried System > Export/Import > Profiles but this does not work as the documentation explains: http://www.magentocommerce.com/knowledge-base/entry/tutorial-using-magentos-import-export-profiles.

Note: I don't need to import this data back into Magento.

What's the trick?


Go to Manage Customer >> Customers >> Click on that.

Then it will open a grid for customer

Then search Export to CSV. Select CSV and Press Export Button.

| improve this answer | |

Here my solution with customer address in a small script

$collection = Mage::getModel('customer/customer')

$fp = fopen('file.csv', 'w');
foreach($collection as $customer) {
    $customerAddressId = $customer->getDefaultBilling();
    if ($customerAddressId){
        $address = Mage::getModel('customer/address')->load($customerAddressId);

        $fields = array(
        fputcsv($fp, $fields);
        //var_dump($fields); echo "<br>";
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.