Ejemplo n.º 1
0
 public function getTrackingInfo()
 {
     $_results = parent::getTrackingInfo();
     //$order = Mage::getModel('sales/order')->load(Mage::registry('current_shipping_info')->getOrderId());
     if (Mage::getStoreConfig('shippingtracking/general/enabled')) {
         foreach ($_results as $shipid => $_result) {
             foreach ($_result as $key => $track) {
                 $carrier = $track->getCarrier();
                 if (Mage::getStoreConfig('shippingtracking/' . $carrier . '_api/enabled')) {
                     $_results[$shipid][$key] = Mage::getModel('shipping/tracking_result_status')->setData($track->getAllData())->setErrorMessage(null)->setUrl($this->getUrl('shippingtracking/index/' . $carrier, array('number' => $track->getTracking())));
                 }
             }
         }
     }
     return $_results;
 }
Ejemplo n.º 2
0
 /**
  * Class constructor
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setPackageInfo(Mage::registry('rma_package_shipping'));
 }
Ejemplo n.º 3
0
 public function getTrackingInfo()
 {
     $_results = parent::getTrackingInfo();
     return $_results;
 }