给定一个magento订单对象,如何找到与该订单相关的跟踪号码?来自订单对象的Magento跟踪号码
$order = Mage::getModel('sales/order')->loadByIncrementId(100000064);
$shipmentCollection = Mage::getResourceModel('sales/order_shipment_collection')
->setOrderFilter($order)
->load();
foreach ($shipmentCollection as $shipment){
// This will give me the shipment IncrementId, but not the actual tracking information.
$shipment->getData();
}
http://stackoverflow.com/questions/3155671/magento-cronjob-outside-magento-to-update-shipment-status一些相关的代码在这里。 – B00MER 2011-04-20 22:40:12
一个答案,帮助我谷歌搜索这个:http://stackoverflow.com/questions/9433627/ – 2013-01-16 23:02:28