gamdev Posted September 29, 2015 Share Posted September 29, 2015 Hello Im create a script to add or update products to my prestashop. I have done with web service. I updated my prestashop to version 1.6.1.0 and stopped working my script. I've seen PSWebServiceLibrary.php need another library, so I downloaded me. What happens is that now I get the following error: "Node no longer exists" This is the code which gives the error: function getProductByEan($ean){ global $webService; $opt['resource'] = 'products'; $opt['filter']['ean13'] = $ean; $xml = $webService->get($opt); var_dump($xml); if($xml){ $x = ($xml->products[0]->product->attributes()); $ProductId = $x['id']; return $ProductId; } else return null; } Help me please :S 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