Jump to content

[SOLVED] [HELP] I am following the dev-guide, but can't go on.


JasonWang

Recommended Posts

I was trying these code from PS dev-guide.

http://doc.prestashop.com/display/PS15/Webservice+one-page+documentation

 

try {
   // creating webservice access
   $webService = new PrestaShopWebservice('http://example.com/', 'UCCLLQ9N2ARSHWCXLT74KUKSSK34BFKX', false);
 
   // call to retrieve all clients
   $xml = $webService->get(array('resource' => 'customers'));
}
catch (PrestaShopWebserviceException $ex) {
   // Shows a message related to the error
   echo 'Other error: <br />' . $ex->getMessage();
}

And I got this error.

"Other error: 

This library is not compatible with this version of PrestaShop. Please upgrade/downgrade this library"

 

I know the library I was using is v 1.5.4. But my PSshop is v1.5.5.

And I can't find a higher version than 1.5.4 online.

 

How could I solve the problem?

 

p.s.

I am new to php development. I'd like to make my own theme, which may mainly depend on knowledeg of Smarty, JS, CSS. But I also want to control the content on page. So, I need to know which objects have been injected into this page/module and how I could inject other new obejects into this page/module. And I dont know how to do that or what kind of knowledge I should learn. Is there a document or guide I could follow? How to debug a php web app? Just like debuging java web app with Eclipse, so I could see every step of the process.

 

Thank you so much.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...