/** * @param \Ess\M2ePro\Model\Magento\Product $magentoProduct * @return \Ess\M2ePro\Model\Ebay\Template\Shipping\Calculated\Source */ public function getSource(\Ess\M2ePro\Model\Magento\Product $magentoProduct) { $productId = $magentoProduct->getProductId(); if (!empty($this->shippingCalculatedSourceModels[$productId])) { return $this->shippingCalculatedSourceModels[$productId]; } $this->shippingCalculatedSourceModels[$productId] = $this->modelFactory->getObject('Ebay\\Template\\Shipping\\Calculated\\Source'); $this->shippingCalculatedSourceModels[$productId]->setMagentoProduct($magentoProduct); $this->shippingCalculatedSourceModels[$productId]->setShippingCalculatedTemplate($this); return $this->shippingCalculatedSourceModels[$productId]; }
/** * @param \Ess\M2ePro\Model\Magento\Product $magentoProduct * @return \Ess\M2ePro\Model\Ebay\Template\Category\Specific\Source */ public function getSource(\Ess\M2ePro\Model\Magento\Product $magentoProduct) { $productId = $magentoProduct->getProductId(); if (!empty($this->categorySpecificSourceModels[$productId])) { return $this->categorySpecificSourceModels[$productId]; } $this->categorySpecificSourceModels[$productId] = $this->modelFactory->getObject('Ebay\\Template\\Category\\Specific\\Source'); $this->categorySpecificSourceModels[$productId]->setMagentoProduct($magentoProduct); $this->categorySpecificSourceModels[$productId]->setCategorySpecificTemplate($this); return $this->categorySpecificSourceModels[$productId]; }
/** * @param \Ess\M2ePro\Model\Magento\Product $magentoProduct * @return \Ess\M2ePro\Model\Ebay\Template\SellingFormat\Source */ public function getSource(\Ess\M2ePro\Model\Magento\Product $magentoProduct) { $productId = $magentoProduct->getProductId(); if (!empty($this->sellingSourceModels[$productId])) { return $this->sellingSourceModels[$productId]; } $this->sellingSourceModels[$productId] = $this->modelFactory->getObject('Ebay\\Template\\SellingFormat\\Source'); $this->sellingSourceModels[$productId]->setMagentoProduct($magentoProduct); $this->sellingSourceModels[$productId]->setSellingFormatTemplate($this->getParentObject()); return $this->sellingSourceModels[$productId]; }
/** * @param \Ess\M2ePro\Model\Magento\Product $magentoProduct * @return \Ess\M2ePro\Model\Amazon\Template\Description\Source */ public function getSource(\Ess\M2ePro\Model\Magento\Product $magentoProduct) { $productId = $magentoProduct->getProductId(); if (!empty($this->descriptionSourceModels[$productId])) { return $this->descriptionSourceModels[$productId]; } $this->descriptionSourceModels[$productId] = $this->modelFactory->getObject('Amazon\\Template\\Description\\Source'); $this->descriptionSourceModels[$productId]->setMagentoProduct($magentoProduct); $this->descriptionSourceModels[$productId]->setDescriptionTemplate($this->getParentObject()); return $this->descriptionSourceModels[$productId]; }
/** * @param \Ess\M2ePro\Model\Magento\Product $magentoProduct * @return \Ess\M2ePro\Model\Amazon\Listing\Source */ public function getSource(\Ess\M2ePro\Model\Magento\Product $magentoProduct) { $productId = $magentoProduct->getProductId(); if (!empty($this->listingSourceModels[$productId])) { return $this->listingSourceModels[$productId]; } $this->listingSourceModels[$productId] = $this->modelFactory->getObject('Amazon\\Listing\\Source'); $this->listingSourceModels[$productId]->setMagentoProduct($magentoProduct); $this->listingSourceModels[$productId]->setListing($this->getParentObject()); return $this->listingSourceModels[$productId]; }