Beispiel #1
0
 public function process()
 {
     $this->setStatus(self::STATUS_SUCCESS);
     if (!$this->validateNeedRequestSend()) {
         return array();
     }
     $this->updateOrLockListing();
     $result = parent::process();
     $this->checkUnlockListing();
     return $result;
 }
 public function process()
 {
     if (!$this->validateNeedRequestSend()) {
         return false;
     }
     $result = parent::process();
     foreach ($this->messages as $message) {
         if ($message[parent::MESSAGE_TYPE_KEY] != parent::MESSAGE_TYPE_ERROR) {
             continue;
         }
         // Parser hack -> Mage::helper('M2ePro')->__('eBay Order status was not updated. Reason: %msg%');
         $message = Mage::getSingleton('M2ePro/LogsBase')->encodeDescription('eBay Order status was not updated. Reason: %msg%', array('msg' => $message[parent::MESSAGE_TEXT_KEY]));
         $this->order->addErrorLogMessage($message);
     }
     return $result;
 }
 public function process()
 {
     $this->setStatus(Ess_M2ePro_Model_Connectors_Ebay_Item_Abstract::STATUS_SUCCESS);
     if (!$this->validateNeedRequestSend()) {
         return array();
     }
     $this->updateOrLockListing();
     $result = parent::process();
     $this->checkUnlockListing();
     foreach ($this->messages as $message) {
         $priorityMessage = Ess_M2ePro_Model_EbayListingsLogs::PRIORITY_MEDIUM;
         if ($message[parent::MESSAGE_TYPE_KEY] == parent::MESSAGE_TYPE_ERROR) {
             $priorityMessage = Ess_M2ePro_Model_EbayListingsLogs::PRIORITY_HIGH;
         }
         $this->addProductsLogsMessage($this->ebayListing, $message, $priorityMessage);
     }
     return $result;
 }