給定一個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