JustJohn Posted October 27, 2022 Share Posted October 27, 2022 (edited) From what I'm seeing it's necessary to do several POST requests just to POST a single product complete with images and stocks/inventory data. Is that so or is it possible to concoct a single XML body and POST it to a certain api path? Edited October 27, 2022 by JustJohn (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted October 27, 2022 Share Posted October 27, 2022 Hi. In the new version of Prestashop, you can create your own module and API hook. hookAddWebserviceResources Sample: Link to comment Share on other sites More sharing options...
JustJohn Posted October 27, 2022 Author Share Posted October 27, 2022 (edited) A module just to post a product? Wouldn't it be easier to issue several requests and reuse the existing functionality rather than do that? In my original question I wondered if the functionality to post a product in a single request already exists and it's only a question of providing the correct XML. Sadly there are no Webservice tutorials for Prestashop like there are for Magento. Edited October 27, 2022 by JustJohn (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted October 27, 2022 Share Posted October 27, 2022 https://devdocs.prestashop-project.org/1.7/webservice/ Link to comment Share on other sites More sharing options...
JustJohn Posted October 27, 2022 Author Share Posted October 27, 2022 Have you read my question and my second post? 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