onurkara Posted April 12, 2020 Share Posted April 12, 2020 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 More sharing options...
selectshop.at Posted April 12, 2020 Share Posted April 12, 2020 Use the webservice. Docu you will find here: http://doc.prestashop.com/display/PS17/Webservice and here https://devdocs.prestashop.com/1.7/development/webservice/ Link to comment Share on other sites More sharing options...
onurkara Posted April 12, 2020 Author Share Posted April 12, 2020 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 More sharing options...
ikalisnik Posted April 16, 2020 Share Posted April 16, 2020 how did you import user password? Link to comment Share on other sites More sharing options...
onurkara Posted April 16, 2020 Author Share Posted April 16, 2020 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 More sharing options...
Guest Posted April 17, 2020 Share Posted April 17, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now