Example #1
0
 public function render(Varien_Object $row)
 {
     $return = $row->getRealOrderId();
     /* @var $shipment Dhl_Intraship_Model_Shipment */
     $shipment = Mage::getModel('intraship/shipment')->load($row->getEntityId(), 'order_id');
     if (false === $shipment->isEmpty()) {
         if (true === $shipment->isProcessed()) {
             $return .= ' <img src="' . $this->getSkinUrl('images/dhl/icon_complete.png') . '" alt="| ' . Mage::helper('intraship')->__('DHL Intraship (successful)') . '" title="' . Mage::helper('intraship')->__('Successful') . '"/>';
         } elseif (true === $shipment->isFailed()) {
             $return .= ' <img src="' . $this->getSkinUrl('images/dhl/icon_failed.png') . '" alt="| ' . Mage::helper('intraship')->__('DHL Intraship (failed)') . '>" title="' . Mage::helper('intraship')->__('Failed') . '"/>';
         } else {
             $return .= ' <img src="' . $this->getSkinUrl('images/dhl/icon_incomplete.png') . '" alt="| ' . Mage::helper('intraship')->__('DHL Intraship (waiting)') . '" title="' . Mage::helper('intraship')->__('On hold') . '"/>';
         }
     }
     return $return;
 }