Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Import Customer To Magento
 
Mageho
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2008-03-24
France, Paris
 

Good morning,

I have finished my magento site so now, I want to import all my customers to magento Database.

I can’t use Oscommerce Migration Tool extension because my oscommerce database don’t correspond to a default installation of oscommerce.
It’s not the same name for fields and datatables.

I want to use the method importFromTextArray in Customer Model.

In order to use it, I want to know how to handle the password hash.

I look up in Oscommerce Migration Tool, but i didn’t find it where you do the convertion ?

Cheers,
Ilan

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mageho
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2008-03-24
France, Paris
 

Up.

Related question : how do I use dataflow to import customers ?
Maybe, someone have a cvs example file ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mageho
Sr. Member
 
Avatar
Total Posts:  291
Joined:  2008-03-24
France, Paris
 

OK.
I need somebody help for this code :

if (!empty($c['customers_firstname']) && && strlen(trim($c['customers_firstname'])) > &&
      !empty(
$c['customers_lastname']) && strlen(trim($c['customers_lastname'])) > 1)
  
{
  
  $row 
= array
  (
     
'website_code' => 'base',
     
'email' => strtolower($c['customers_email_address']),
     
'firstname' => iso2utf$c['customers_firstname'),
     
'lastname' => iso2utf$c['customers_lastname'),
     
'password_hash' => $c['customers_password'],
     
     
// Facturation
     
'billing' => true,
     
'billing_region' => iso2utf$address['entry_state'),
     
'billing_city' => iso2utfucwordsstrtolower$address['entry_city') ) ),
     
'billing_country' => $address['countries_name'],
     
'billing_postcode' => $address['entry_postcode'],
     
'billing_street1' => iso2utfstrtolower$address['entry_street_address') ),
     
'billing_telephone' => (!empty($address['entry_telephone']) ? $address['entry_telephone'$c['customers_telephone']),
     
     
// Livraison
     
'shipping' => true,
     
'shipping_region' => iso2utf$address['entry_state'),
     
'shipping_city' => iso2utfucwordsstrtolower$address['entry_city') ) ),
     
'shipping_country' => $address['countries_name'],
     
'shipping_postcode' => $address['entry_postcode'],
     
'shipping_street1' => iso2utfstrtolower$address['entry_street_address') ),
     
'shipping_telephone' => (!empty($address['entry_telephone']) ? $address['entry_telephone'$c['customers_telephone']),
     
     
// Newsletter
     
'is_subscribed' => ($c['customers_newsletter'== '1' 'yes' 'no')
  );
  
  
}

Customer import are fully imported except for shipping and billing address.
Where I am wrong ?

Nobody how do to do this ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top