yifeilyf Posted June 1, 2017 Share Posted June 1, 2017 Hi guys, I am working on the Ionic framework, and I am thinking about connecting this mobile app with my current Prestashop in order to get product data. I am learning with some tutorials online, and they only have solutions with Woocommerce API. I just wonder if you guys could provide some information about how to connect these two platforms together. Cheers, Yifei Link to comment Share on other sites More sharing options...
razaro Posted June 1, 2017 Share Posted June 1, 2017 You have to explore a bit both Google and forum there are few topics. Some ask help and then disappear not providing solutions but some are explained and can be useful. https://www.prestashop.com/forums/topic/280551-webservices-mobile-application-and-login-functionality/ https://www.prestashop.com/forums/topic/507706-accessing-the-api-from-angularjs-method-options-is-not-valid/ In general you would need to check PrestaShop Web Service http://doc.prestashop.com/display/PS16/Using+the+PrestaShop+Web+Service http://doc.prestashop.com/display/PS16/Web+service+tutorial And do use output format JSON, think that will help you out var get_products = 'http://your-store-name.com/api/products?ws_key=YOUR_KEY&output_format=JSON'; 1 Link to comment Share on other sites More sharing options...
yifeilyf Posted June 1, 2017 Author Share Posted June 1, 2017 Hi, I really appreciate your help. I already looked at Prestashop Web Service documentation. The following image is what I get currently. However, I notice that I copy these links and paste another web page, and I have to type my username and password, which means that if I access data from my Prestashop, I may need to interact with my authorization. Also, I saw that you give me a JSON format but I find data that I get from the documentation is XML format. Currently, I follow this link "http://doc.prestashop.com/display/PS16/Web+service+tutorial". Look forward to receiving your reply. Cheers, Yifei Link to comment Share on other sites More sharing options...
razaro Posted June 2, 2017 Share Posted June 2, 2017 Can you share code where you make first connection to web service in your app ? Link to comment Share on other sites More sharing options...
yifeilyf Posted June 2, 2017 Author Share Posted June 2, 2017 (edited) Hi, I already figure out how to fetch data throughout Prestashop web service, but I do not know how to display these data in my app. The following image is my provider file, which I follow this link "https://www.youtube.com/watch?v=vuc4dp0qHSc". Please have a look Cheers, Yifei Edited June 2, 2017 by yifeilyf (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted June 2, 2017 Share Posted June 2, 2017 Well that part is beyond me, I did try Ionic long time ago But it looks to me you are on right path. You got data in this.product and that should be passed to template , right ? ion-list and ion-item Hope you find solution. 1 Link to comment Share on other sites More sharing options...
jeanboris Posted February 14, 2018 Share Posted February 14, 2018 Hi, I am also working on how to connect my ionic application with the prestashop web services, and I would like to have the code that allows you to have the data of your products, of course without your API key. Thanks for your help 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