2017-08-01 145 views

回答

0

//試試下面的代碼。

$orderId = 1234; //put your order id. 
$order = $this->_objectManager->create('Magento\Sales\Model\Order')->load($orderId); 
$orderItems = $order->getAllItems(); 
foreach($orderItems as $item) 
{ 
    echo "Order Item ID :".$item->getItemId(); // 
}