chnsh / pretashop-order-update-ionic-app Goto Github PK
View Code? Open in Web Editor NEWThis application is a ready Ionic/Phonegap application that can be deployed on an android/ios phone to ease prestashop order management
This application is a ready Ionic/Phonegap application that can be deployed on an android/ios phone to ease prestashop order management
Hi,
I already implement to display my product information into my ionic application throughout Prestashop web service by using Get method.
eg.
this.http.get("http://www.example.com/api/products/?ws_key=xxxxxxxx&output_format=JSON&display=full").map(res => res.json()).subscribe(data => {
});
I also implement that new customer could sign up in the app, and customer data will be upload throughout Prestashop Web service. People who manage the back office could look at that a new customer sign up. I know that the default data for Prestashop is XML so I upload XML data back to its API.
eg.
//I only upload the data that Prestashop requires according to errors by testing, but I do not know //what data exactly Prestashop needs.
//I upload address without customer id, which makes address not display in the back office.
let customer = "<prestashop><customer><firstname>"+ this.newUser.first_name +"</firstname><lastname>" + this.newUser.last_name + "</lastname><email>" + this.newUser.email + "</email><passwd>" + this.newUser.password + "</passwd><active>1</active><newsletter>1</newsletter></customer></prestashop>" ;
let linkToCustomer = 'http://www.example.com/api/customers/?ws_key='+ this.apikey + '&output_format=JSON&display=full';
this.http.post(linkToCustomer, customer, {headers: headers}).map(res => res.json()).subscribe(data => {
});
The last step for me is to upload order after customers purchase. This step is quite difficult since each order interacts with several api pages such as api/orders, api/carriers, api/carts, api/orders_invoice and so on. I want to data could display on back office just like customers make an order through web broswer, and sales representatives could manage orders on back office.
Could you please give some suggestion about my problem.
Look forward to receiving your reply soon.
Cheers,
Yifei
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.