私はAPI接続を作成しようとしているので、APIを介してPrestashopのDOCで注文を作成できます: http ://doc.prestashop.com/download/attachments/720902/CRUD+Tutorial+EN.pdf?version = 1&modificationDate = 1301486324000
注文の作成に関する情報はありません。自分で何かを作成しようとすると、すべてが失敗します。
$xml = $webService->get(array('url' => 'http://mysite.com/prestashop/api/orders?schema=synopsis'));
$resources = $xml -> children() -> children();
$resources->children()->id_address_delivery = 1;
$resources->children()->id_address_invoice = 1;
$resources->children()->id_cart = 1;
$resources->children()->id_currency = 1;
$resources->children()->id_lang = 2;
$resources->children()->id_customer = 1;
$resources->children()->id_carrier = 2;
$resources->children()->total_paid = '1';
$resources->children()->total_paid_real = '1';
$resources->children()->total_products = 1;
$resources->children()->total_products_wt = 1;
$resources->children()->conversion_rate = 0.1;
$resources->children()->module = 'cheque';
$resources->children()->payment = 'Cheque';
$xml = $webService->add(array('resource' => 'orders',
'postXml' => $resources->asXML()
));
エラーなどが発生しますが、ここの誰かが適切なドキュメントを利用できますか?または、簡単な注文を行う際に実行されるスクリプトですか?