vasilist Posted August 3, 2011 Share Posted August 3, 2011 Hello. I am trying to integrate prestashop with an external system. When I create a resource(category, product, etc) via webservice, the response is a string with some function names.(!!!!) I need the id that resource has on webshop database, so when i will have to update this record, to know which one is. Is there any way to have this info(inserted id) through my rest request? Thank you. Link to comment Share on other sites More sharing options...
spope Posted December 3, 2012 Share Posted December 3, 2012 (edited) Hello, A bit to late but it can help other people : Exemple to get inserted cart ID. $xml = $this->webService->add($opt); $insertedCart = $xml->cart->children(); $idCart = (string) $insertedCart->id; Edited December 3, 2012 by spope (see edit history) 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