コード例 #1
0
 /**
  * @param $message
  * @throws Ess_M2ePro_Model_Exception_Logic
  */
 public function eventFailedExecuting($message)
 {
     parent::eventFailedExecuting($message);
     foreach ($this->getOrders() as $order) {
         $order->getLog()->setInitiator(Ess_M2ePro_Helper_Data::INITIATOR_EXTENSION);
         $order->addErrorLog('Rakuten.com Order status was not updated. Reason: %msg%', array('msg' => $message));
     }
 }
コード例 #2
0
 public function eventFailedExecuting($message)
 {
     parent::eventFailedExecuting($message);
     $this->isResponseFailed = true;
     foreach ($this->listingsProducts as $listingProduct) {
         $this->getLogger()->logListingProductMessage($listingProduct, $message, Ess_M2ePro_Model_Log_Abstract::TYPE_ERROR, Ess_M2ePro_Model_Log_Abstract::PRIORITY_HIGH);
     }
 }
コード例 #3
0
ファイル: ShippingResponser.php プロジェクト: ppkowalski/M2E
 public function eventFailedExecuting($message)
 {
     parent::eventFailedExecuting($message);
     $logs = array();
     $currentDate = Mage::helper('M2ePro')->getCurrentGmtDate();
     $logMessage = Mage::getSingleton('M2ePro/Log_Abstract')->encodeDescription('Rakuten.com Order status was not updated. Reason: %msg%', array('msg' => $message));
     foreach (array_keys($this->params) as $orderId) {
         $logs[] = array('order_id' => (int) $orderId, 'message' => $logMessage, 'type' => Ess_M2ePro_Model_Log_Abstract::TYPE_ERROR, 'component_mode' => Ess_M2ePro_Helper_Component_Buy::NICK, 'initiator' => Ess_M2ePro_Helper_Data::INITIATOR_EXTENSION, 'create_date' => $currentDate);
     }
     $this->createLogEntries($logs);
 }