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(); }
public function process(array $responseBody = array(), array $messages = array()) { $processingStatus = Ess_M2ePro_Model_Amazon_Listing_Product::GENERAL_ID_SEARCH_STATUS_NONE; $this->getListingProduct()->getChildObject()->setData('general_id_search_status', $processingStatus)->save(); return parent::process($responseBody, $messages); }