skurty Posted April 4, 2011 Posted April 4, 2011 Hello,I work in a project and I would like import products from a csv file. So I use the Webservice added in the version 1.4.The problem is that every products added with the api have the same price : 29 € (I'm French).I looked in the file "/classes/WebserviceRequest.php" and I found the problem : at the line 1247 we have : if ($this->_resourceConfiguration['objectNodeName'] == 'product' && $key == 'price') $ret .= $this->getPrice(null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null); else if (is_null($this->_schemaToDisplay)) $ret .= '<![CDATA['.$object->$key.']]>'; Why collect the price of the second product ? If I remove the first condition, the problem is resolved : if (is_null($this->_schemaToDisplay)) $ret .= '<![CDATA['.$object->$key.']]>'; I think that it was a test that was forgotten.Cordially Share this post Link to post 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