I also inserted the customers usind sql script. I utilized excel to prepare the sql scripts. First I divided my data to 17 different tabs later I prepared sql for 1000 records at most. Even if I enter data with sql script I had problem with data bigger than 1000 records.
This is a sample sql
INSERT INTO ps_customer
(active
, id_gender
, email
,passwd
, lastname
, firstname
, newsletter
,optin
) VALUES
(1,9, "email@yahoo.com", MD5(CONCAT('cookiekeycookiekeycookiekey','password')),"surname","name",1,1);
Later you should run the script below otherwise you can not login
INSERT INTO ps_customer_group
(id_customer,id_group) SELECT id_customer,3 FROM ps_customer WHERE id_customer NOT IN (SELECT id_customer FROM ps_customer_group
)
In my existing data I had the address in the same table but in prestashop adres is stored in another table. I prepared the sql below to use the customerid s in address table.
INSERT INTO ps_address
(id_customer
, id_country
, id_state
, alias
, company
, lastname
, firstname
, address1
, postcode
, city
, phone
, phone_mobile
, vat_number
) VALUES
(( SELECT id_customer
FROM ps_customer
WHERE email
= "email@hotmail.com" ), 211 , 0 , " Adres1 "," "," Surname "," Name ","Adress details "," 10000 "," İstanbul "," tel1 "," mobile tel "," "));
That all ...
Ferda