我正在尝试获取发货数据,但结果为空
$orderID = 100000062; $order = Mage::getModel('sales/order')->load($orderID); foreach ($order->getShipmentsCollection() as $shipment) { Mage::log($shipment->getData()); }
n6lpvg4x1#
您可以尝试以下方法:
$shipmentCollection = Mage::getResourceModel('sales/order_shipment_collection') ->setOrderFilter($order) ->load();
1条答案
按热度按时间n6lpvg4x1#
您可以尝试以下方法: