Jump to content

webservice get products information


Recommended Posts

Hi,

 

 

[EDIT][sOLVED]

Ok, i missed something, parameters are for a list of items, eg http://localhost/tests/prestashop15/api/products?display=full but not for individual item ( http://localhost/tests/prestashop15/api/products/3?display=full

[/EDIT]

 

 

When i request http://localhost/tests/prestashop15/api/products/3 I have lot of informations (description, etc). That's ok.

But If i request http://localhost/tests/prestashop15/api/products/3?display=full I just have 





<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<product id="3" xlink:href="http://localhost/tests/prestashop15/api/products/3"/>
</prestashop>

If i add fields ( http://localhost/tests/prestashop15/api/products/3?display=[name,description] )  result is the same as above.

 

What am i missing ? 

( I'm reading http://doc.prestashop.com/display/PS15/Chapter+8+-+Advanced+Use )

 

My code is here : https://gist.github.com/SebSept/7445979

 

(Prestashop 1.5.4.1)

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

×
×
  • Create New...