Magento import/export customers with their ids

Here, We have written an article about import/export customers with their ids in magento. We explained here step by step import the customers with their ids from old website to Magento Ecommerce site and export to other ecommerce site with customers ids. It will help us to maintain customers with old ids and references like in orders.

Export with Customers ID’s:

Override file: app\code\core\Mage\Customer\Model\Convert\Parser\Customer.php

Find and update function unparse();


after update:

Import with Customers ID’s:

To import CSV files from Dataflow – Profile, First of all you have to query on database for avoiding database related constraint error before Import CSV.

After Importing CSV files you have to fire query on database for add database constraints:

That’s End.