Пример #1
0
 public function eventFailedExecuting($message)
 {
     parent::eventFailedExecuting($message);
     $logModel = Mage::getModel('M2ePro/Listing_Log');
     $logModel->setComponentMode(Ess_M2ePro_Helper_Component_Amazon::NICK);
     $logModel->addProductMessage($this->getListingProduct()->getListingId(), $this->getListingProduct()->getProductId(), $this->getListingProduct()->getId(), Ess_M2ePro_Helper_Data::INITIATOR_UNKNOWN, NULL, Ess_M2ePro_Model_Listing_Log::ACTION_UNKNOWN, $message, Ess_M2ePro_Model_Log_Abstract::TYPE_ERROR, Ess_M2ePro_Model_Log_Abstract::PRIORITY_HIGH);
     $this->getListingProduct()->setData('search_settings_status', null);
     $this->getListingProduct()->setData('search_settings_data', null);
     $this->getListingProduct()->save();
 }