Yo Mirpuri Posted July 2, 2015 Share Posted July 2, 2015 Hi, We sell on multiple platforms (like Amazon, eBay etc) and also on our own website www.Sureseller.in We recently tried to use a software to adjust stocks of our products through all these platforms. But we are facing problems with Syncing stocks with our Prestashop store. On contacting the software developer, they have replied as: "As we can check the the response of the products API is incorrect. You can also check the same from attached snapshot. (http://www.sureseller.in/api/products/30) In circled region after first ‘availables’ the next should be ‘available’ but it is ‘availables’ there." And they have included the following image: We are feeling lost as we are only laymen in the programming field. We really don't know what to do. Any help in solving this issue will be much appreciated. Thanks, Yo Mir Link to comment Share on other sites More sharing options...
bellini13 Posted July 2, 2015 Share Posted July 2, 2015 In classes\WebserviceRequest.php, search for 'stock_availables' Link to comment Share on other sites More sharing options...
Yo Mirpuri Posted July 2, 2015 Author Share Posted July 2, 2015 Found it. But this dosen't refer to "node type' as shown in th image. What do I do next? Thanks, Link to comment Share on other sites More sharing options...
bellini13 Posted July 2, 2015 Share Posted July 2, 2015 you said it is supposed to be stock_available so maybe try removing the s. Link to comment Share on other sites More sharing options...
Yo Mirpuri Posted July 2, 2015 Author Share Posted July 2, 2015 Thank you. Tried, but now it dosen't connect through API. Let me try re-generating an API key, hope that may work. Link to comment Share on other sites More sharing options...
Yo Mirpuri Posted July 6, 2015 Author Share Posted July 6, 2015 Any help with this. I have a new image. Thanks, Yogesh Mirpuri Link to comment Share on other sites More sharing options...
bellini13 Posted July 7, 2015 Share Posted July 7, 2015 have you considered that Prestashop is working properly and that your software developer is wrong? did you ask them to provide documentation showing that stock_availables is supposed to be stock_available? Link to comment Share on other sites More sharing options...
Yo Mirpuri Posted July 28, 2015 Author Share Posted July 28, 2015 Hi, which part of prestashop can I find the following script? <stock_availables nodeType="stock_available" api="stock_availables"> <stock_available xlink:href="http://presta16/api/stock_availables/1"> <id> Thanks Link to comment Share on other sites More sharing options...
Yo Mirpuri Posted September 9, 2015 Author Share Posted September 9, 2015 Hi, Thanks everyone who tried to help. We solved the problem, and here's the link to the solution: https://github.com/PrestaShop/PrestaShop/commit/87d1777e462bace827463a56ce0cc41839ca62ca Regards, Yo Mir 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