Example #1
0
 /**
  * @return Ess_M2ePro_Model_Ebay_Template_OtherCategory
  */
 public function getOtherCategoryTemplate()
 {
     if (is_null($this->otherCategoryTemplateModel)) {
         try {
             $this->otherCategoryTemplateModel = Mage::helper('M2ePro')->getCachedObject('Ebay_Template_OtherCategory', (int) $this->getAddingTemplateOtherCategoryId(), NULL, array('template'));
         } catch (Exception $exception) {
             return $this->otherCategoryTemplateModel;
         }
         if (!is_null($this->getMagentoProduct())) {
             $this->otherCategoryTemplateModel->setMagentoProduct($this->getMagentoProduct());
         }
     }
     return $this->otherCategoryTemplateModel;
 }
Example #2
0
 /**
  * @return Ess_M2ePro_Model_Ebay_Template_OtherCategory
  */
 public function getOtherCategoryTemplate()
 {
     if (is_null($this->otherCategoryTemplateModel)) {
         if ($this->isSetOtherCategoryTemplate()) {
             $this->otherCategoryTemplateModel = Mage::helper('M2ePro')->getCachedObject('Ebay_Template_OtherCategory', (int) $this->getTemplateOtherCategoryId(), NULL, array('template'));
             $this->otherCategoryTemplateModel->setMagentoProduct($this->getMagentoProduct());
         }
     }
     return $this->otherCategoryTemplateModel;
 }