Jump to content

Customers import


MP-zoho

Recommended Posts

Hi,

After a new install (1.6.1.6), I would like to import my customers and their address.

 

So, I make my CSV file and I have my customers in "Customers" and their address in "Address".

 

But, if I open a customer profile, in the address block, I don't have his address : how can I link them ?

 

Thanks

Link to comment
Share on other sites

Are you sure the customer records and addressed records are imported correctly?

When you import, make sure you choose option  "Force ID" so that the address ID and Customer ID are maintained and the relationship will be maintained too.

Otherwise, if all ID are new assigned, then the Customer - Address relationship will be lost - you will not see the address of the customer.

Link to comment
Share on other sites

Re,

Yes, I'm sure.

After more search, some customers have their right address, but most of them not (id_customer in ps_address has been changed with import : I don't know why).

Finally, I just made directly in my DB

UPDATE ps_address SET id_customer=id_address;

and it seems good.

 

Thanks

Link to comment
Share on other sites

After more search, some customers have their right address, but most of them not (id_customer in ps_address has been changed with import : I don't know why).

 

 

 
As I mentioned previously, you have choose option to "Force ID" to keep ID not changes.
 

 

Finally, I just made directly in my DB

UPDATE ps_address SET id_customer=id_address;

and it seems good.

 

 

 
This SQL might be not working for all customer address.
I suggest you check all your customer and address relation. 
 
It is better to use "Force ID" at import.
 
 
Link to comment
Share on other sites

You have chosen both of following?

 

Delete all customers before import  : Yes

Force all ID numbers     : Yes  

Re,

 

Yes for both of them and I have no error after import.

Just, in DB, most of id_customer in ps_address are changed between my file and the DB : I don't know why.

As it's a new install without customer, I can make same ID in my CSV for ps_customer (id_customer) and ps_address (id_address and id_customer).

 

 

Thanks

Link to comment
Share on other sites

 

 

 

As it's a new install without customer, I can make same ID in my CSV for ps_customer (id_customer) and ps_address (id_address and id_customer).

 
If that is the case, then you can use your SQL to update after import.
 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...