Exemplo n.º 1
0
 public function process()
 {
     $this->setStatus(Ess_M2ePro_Model_Buy_Connector_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_Buy_Connector_Product_Requester::STATUS_ERROR);
     }
     $this->checkUnlockListings();
 }
Exemplo n.º 2
0
 public function process()
 {
     parent::process();
     $this->deleteProcessedChanges();
 }