I am looking to migrate ZenCart "customers" to an existing Magento website. I tried two extensions from MagentoConnect; however it doesn't works.
osCommerce Migration Tool osCommerce Import
There are premium 3rd party migration services available in market, however I would like to do this my own. Please help me out by providing some steps to this through code.
Currently the zen cart DB is having prefix "zen_". Will this be causing inconvenience ? please point me out a starting point on this. Thanks
I have sorted this my own. What surprised me is, there are no valid doc on how to import customers from ZenCart/OsCommerce to Magento any where around web unless some forum with premium Magento extensions. Hence I am posting my solution here which would be a help for any one who is looking for this same solution.
Fetching ZenCart customer details
Obviously ZenCart uses MySQL DB. Get into MySQL prompt and look into the customers table. Use the below command respectively.
You can see the details of your ZenCart customers there. Sample output will be like this per customer.
This is a sample and we have to take all these customer details to a unix file.
Now come out of MySQL prompt. To create a Magento user, we only need firstname,lastname,email and password. These four details are mandatory. Hence grep those details from the customer.txt file.
The location of customer.txt file will be /var/lib/mysql/ZenCart_DB/customer.txt
Grep the required customer details to different individual files which will help us to put them into for loop later.
Creating a Magento user
No we have collected all the details. Now to create a test Magento user from backend, we have to run 5 MySQL queries in magento database. They are,
If you have too many customers to add, then better put them in for loop. This is optional for each person. we can create for loop in bash or similar in Perl or what ever language you are good at.
Few things to note,
That's all I think. Thanks. :)