예제 #1
0
 public function setListingProduct(\Ess\M2ePro\Model\Listing\Product $listingProduct)
 {
     if (!is_null($listingProduct->getActionConfigurator())) {
         $actionConfigurator = $listingProduct->getActionConfigurator();
     } else {
         $actionConfigurator = $this->modelFactory->getObject('Ebay\\Listing\\Product\\Action\\Configurator');
     }
     $this->listingProduct = $listingProduct->load($listingProduct->getId());
     $this->listingProduct->setActionConfigurator($actionConfigurator);
     $this->marketplace = $this->listingProduct->getMarketplace();
     $this->account = $this->listingProduct->getAccount();
 }