1
我使用magento
網站製作android應用程序的API。所以我使用Magento API
。在我的結帳過程中,我最後想要顯示訂單審查。爲了審查我想顯示產品名稱,價格,數量,小計,運費,總計。那麼我如何獲得整個信息?如果解決方案將在Magento API
中,這將是非常好的。如何獲得magento訂單審查信息
我使用magento
網站製作android應用程序的API。所以我使用Magento API
。在我的結帳過程中,我最後想要顯示訂單審查。爲了審查我想顯示產品名稱,價格,數量,小計,運費,總計。那麼我如何獲得整個信息?如果解決方案將在Magento API
中,這將是非常好的。如何獲得magento訂單審查信息
使用以下使用SOAP API審查才能在Magento代碼:
$client = new SoapClient("http://example.com/api/soap/?wsdl");
$session = $client->login('username', 'password'); //set session
$cartInfo=array();
$quoteId = $client->call($session, 'cart.create', array('default'));// for create cart
$cartInfo['info'] = $client->call($session, 'cart.info', $quoteId); // for get all cart information
$cartInfo['total'] = $client->call($session, "cart.totals", array($quoteId)); get cart total and shipping charges
print_r($cartInfo);
都希望早於訂單的地方後才能到位雅展現呢? – 2014-09-19 07:26:16
我想在訂購地點之前顯示。 – 2014-09-19 07:28:14