Jump to content

Add Orders with Webservice


Recommended Posts

Hello

 

I'm trying to register a request from a webservice,

 

My code is as follows

 

$webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG);

$opt['resource'] = '/orders?schema=blank';

$xml = $webService->get($opt);

// champs requis

$xml->order->

.................

.................

 

$opt = array('resource' => 'orders');

$opt['postXml'] = $xml->asXML();

$xml = $webService->add($opt);

 

 

 

I would like to introduce the delivery address, invoice number etc (all fields associated with the order that do not correspond to the table ps_orders),

 

I can spend an example of how you do it?

 

 

Regards :-)

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...