Jump to content

Ionic framework access product data from Prestashop


Recommended Posts

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

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';
  • Like 1
Link to comment
Share on other sites

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

 

post-1389831-0-74792500-1496324387_thumb.png

Link to comment
Share on other sites

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

 

post-1389831-0-40159100-1496416171_thumb.pngpost-1389831-0-47986200-1496416275_thumb.pngpost-1389831-0-12603600-1496416178_thumb.pngpost-1389831-0-83130200-1496416179_thumb.png

Edited by yifeilyf (see edit history)
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...