Jump to content

Import old customers and orders via API (1.7.x)


onurkara

Recommended Posts

Hi,

we would like to import old shop data via API.

when we try to import customer (older) orders, product prices are set actual prices either we send via api (1.7.x).

is there any exact solution to import old orders into new presta via API ?

Link to comment
Share on other sites

Thank you for your answer, but i've alrady read those documents and than write API

i've import products via API successfully, also users too, but the specific problem is importing older orders via API is not working as i expected.

As i said before price i set via API is not appears in the order, instead actual product price appears.

 

Link to comment
Share on other sites

Actually i did not import the passwords,

when the user comes first time it's trying to login with user's provided password on presta

if can't login than trying to login old web site via API again.

If it succeed then update the current password on presta db.

This is the solution which i can found.

Link to comment
Share on other sites

On 4/12/2020 at 1:50 PM, onurkara said:

Thank you for your answer, but i've alrady read those documents and than write API

i've import products via API successfully, also users too, but the specific problem is importing older orders via API is not working as i expected.

As i said before price i set via API is not appears in the order, instead actual product price appears.

 

Obviously you have a mistake in the scripts. It's like a lottery bet. Either we can hit your mistake with our advice or we have another 1000 possibilities.

Do you use $order = new Order ();

$order_history = new OrderHistory ((int) $order-> id); 

..........

when importing?

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...