프로그래밍 방식으로 송장을 보내고 배송하고 상태를 설정하는 방법이 있다는 것을 알고 있습니다. (http://www.magentocommerce.com/boards/viewthread/74072/) 실제로 항목 수준까지 드릴 다운해야합니다. 명령. 항목 유형에 따라 두 개의 서로 다른 항목을 두 개의 서로 다른 위치에서 처리 할 수있는 상황이 있습니다 (동일한 순서에서). Magento 백엔드에 들어가서 다른 항목을 "운송"하지 않고 하나의 항목을 "전달"하고 해당 항목에 주석을 추가 할 수 있지만 프로그래밍 방식으로이 작업을 수행 할 방법을 찾고 있습니다. 당신의 도움에 미리 감사드립니다! Magento에서 주문의 단일 항목을 프로그래밍 방식으로 보내고 주석 달기
업데이트
: 여기 내가 이러한 목표를 달성하기 위해 사용하여 종료 코드입니다 :$client = new SoapClient('http://somesite.domain/magento/index.php/api/?wsdl');
$session = $client->login('username', 'password');
function extract_item_id($items, $sku){
foreach($items as $item){
if ($item["sku"]==$sku) {
return $item["item_id"];
}
}
}
$orderNum = "200000052";
$oderInfo = $client->call($session, "sales_order.info", $orderNum);
$item_id = extract_item_id($oderInfo["items"], "someSKU") ;
$itemsQty = array($item_id => "1");
$shipment = array(
$orderNum,
$itemsQty,
"Comment associated with item shipped.",
true,
true
);
var_dump($shipment);
$nship = $client->call($session, 'sales_order_shipment.create', $shipment);
이것은 ShipWorks가 제공하는 기능입니다. 프로그래밍 방식으로 해킹하는 Magento 관련 PHP 파일을 다운로드 할 수 있습니다. – Nic