public function process() { $this->setStatus(Ess_M2ePro_Model_Connector_Server_Play_Product_Requester::STATUS_SUCCESS); $this->setIsProcessingItems(false); if (count($this->listingsProducts) <= 0) { return; } $this->setIsProcessingItems(true); $this->updateOrLockListings(); parent::process(); // When all items are failed in response isset($this->response['data']['messages']) && ($tempMessages = $this->response['data']['messages']); if (isset($tempMessages) && is_array($tempMessages) && count($tempMessages) > 0) { $this->setStatus(Ess_M2ePro_Model_Connector_Server_Play_Product_Requester::STATUS_ERROR); } $this->checkUnlockListings(); }
public function process() { parent::process(); $this->deleteProcessedChanges(); }