joel0101 Posted October 23, 2014 Share Posted October 23, 2014 (edited) Dear friends, I am developping a Java module for my client that needs to update his inventory on the PS platform periodically from the quantities in his POS system. I am using Java with JAXB/Jersey libraries to get the combinations and update them. The Http PUT request goes well and the combination gets updated along with a 200 - OK response and no error <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <combination> <id><![CDATA[170]]></id> <id_product xlink:href="LINK"><![CDATA[52]]></id_product> .... <quantity><![CDATA[3]]></quantity> ..... </combination> </prestashop> On a GET request I see the quantity field takes my new value; however the change is not reflected in the backoffice. I tried on these two URIs HTTP PUT on mysite.com/api/combinations/170 HTTP PUT on mysite.com/api/combinations/170?schema=synopsis Any idea why it would not gets updated? Is there like a commit call that I have to do or something? Any help is appreciated. Regards, Joel Edited October 23, 2014 by joel0101 (see edit history) Link to comment Share on other sites More sharing options...
websku Posted October 26, 2014 Share Posted October 26, 2014 you need to do it on stock_availables. There are references for each combination of the product, and you need to set the quantity there. I have the same issue, and I don't know why these are not in sync, as they should be. 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