Pierre.CIHOLAS Posted February 12, 2013 Share Posted February 12, 2013 Hello dear Prestashopers ! My company uses Prestashop and I'm doing a new website for them. We have some "main" products representing 80% of our sales, so I am making a very simple ordering interface in a jQuery popup to lead the client efficiently. I want the the orders placed by this way to be visible and managable in the Prestashop. Can you suggest me one or some solutions to register a new client and make a new cart & order from a script (an external page) ? I already thought of those solutions : 1. Write directly in the MySQL tables 2. Recreate at the end of the process the HTTP dialog in AJAX 3. Ask the question on Prestashop.com to find a cleaner solution (Maybe is there some functions package to realise those basic operations) Thank you for reading me. Pierre. Link to comment Share on other sites More sharing options...
NemoPS Posted February 13, 2013 Share Posted February 13, 2013 Try using the RESTful API, heren is the docs (thought not clear at all): http://doc.prestashop.com/display/PS14/Using+the+REST+webservice You can make external calls this way (after enabling the webservice). It's pretty ugly to deal with with jquery (or backbone) since ti gives you back XML instead of plain json. You should use some conversion plugin at that point Link to comment Share on other sites More sharing options...
Pierre.CIHOLAS Posted February 26, 2013 Author Share Posted February 26, 2013 Nemo you rock ! Thank you so much for your answer, this is the best solution for my problem. I just installed and tested it it seems to work very good, I need to learn how to use it now, if you have any usefull howto in your bookmarks can you share it please ? Link to comment Share on other sites More sharing options...
neugon Posted December 6, 2013 Share Posted December 6, 2013 Thanks for the help, Nemo1 do you know of any good plugin that I could use?? Thanks 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