Git Product home page Git Product logo

pretashop-order-update-ionic-app's People

Contributors

chnsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pretashop-order-update-ionic-app's Issues

Post order into Prestashop back office throughout web service

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.