Ejemplo n.º 1
0
 public function process()
 {
     if (!is_null($this->marketplace)) {
         $this->requestExtraData['marketplace'] = $this->marketplace->getNativeId();
     }
     if (!is_null($this->account)) {
         $this->requestExtraData['account'] = $this->account->getChildObject()->getServerHash();
     }
     if (!is_null($this->mode)) {
         $this->requestExtraData['mode'] = $this->mode;
     }
     parent::process();
 }
Ejemplo n.º 2
0
 protected function receiveFromAmazon(Ess_M2ePro_Model_Marketplace $marketplace)
 {
     $categories = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processVirtual('marketplace', 'get', 'info', array('include_categories' => true, 'marketplace' => $marketplace->getNativeId()), 'info', NULL, NULL);
     $categories = is_null($categories) ? array() : $categories['categories'];
     $this->getActualOperationHistory()->addText('Total received categories from Amazon: ' . count($categories));
     return $categories;
 }
Ejemplo n.º 3
0
 protected function receiveFromAmazon(Ess_M2ePro_Model_Marketplace $marketplace)
 {
     $details = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processVirtual('marketplace', 'get', 'info', array('include_details' => true, 'marketplace' => $marketplace->getNativeId()), 'info', NULL, NULL);
     if (is_null($details)) {
         return array();
     }
     $details['details']['last_update'] = $details['last_update'];
     return $details['details'];
 }
Ejemplo n.º 4
0
 protected function receiveFromAmazon(Ess_M2ePro_Model_Marketplace $marketplace, $partNumber)
 {
     $response = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processVirtual('marketplace', 'get', 'specifics', array('part_number' => $partNumber, 'marketplace' => $marketplace->getNativeId()));
     if (is_null($response) || empty($response['data'])) {
         $response = array();
     }
     $dataCount = isset($response['data']) ? count($response['data']) : 0;
     $this->getActualOperationHistory()->addText("Total received specifics from Amazon: {$dataCount}");
     return $response;
 }