pablodalma93 Posted January 27, 2014 Share Posted January 27, 2014 Hi newbie here, Im trying the tutorial for using the Prestashop Webservice, when running the code for creating a HTML table containing all the client IDs of chapter 3 it works , but when trying to get a specific customer data with the following code it gives a "Node no longer exists in" PHP warning , but I know a customer with that id exists from the former chapter $opt['resource'] = 'customers'; $opt['id'] = $_GET['id']; $xml = $webService->get($opt); $resources = $xml->customers->children(); foreach ($resources as $key => $resource) echo 'Name of field: ' . $key . ' - Value: ' . $resource . '<br />'; also tried replacing $_GET['id'] with $opt['id'] = 1; or $opt['id'] = '1'; Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now