protected function unsetLocks($fail = false, $message = NULL) { parent::unsetLocks($fail, $message); if (isset($this->params['params']['remove']) && (bool) $this->params['params']['remove']) { foreach ($this->listingsProducts as $listingProduct) { /** @var $listingProduct Ess_M2ePro_Model_Listing_Product */ $listingProduct->addData(array('status' => Ess_M2ePro_Model_Listing_Product::STATUS_STOPPED))->save(); $listingProduct->deleteInstance(); } } }
protected function unsetLocks($fail = false, $message = NULL) { try { $this->removeFromQueueOfSKus(); parent::unsetLocks($fail, $message); } catch (Exception $e) { $exception = new Exception('Failed to clear amazon SKU queue. ' . $e->getMessage()); Mage::helper('M2ePro/Module_Exception')->process($exception); throw $e; } }
protected function unsetLocks($fail = false, $message = NULL) { $this->removeFromQueueOfSKus(); parent::unsetLocks($fail, $message); }