public function getMagentoProduct() { if (is_null($this->getProductId())) { return NULL; } if (is_null($this->magentoProduct)) { $this->magentoProduct = Mage::getModel('M2ePro/Magento_Product'); $this->magentoProduct->setStoreId($this->getOrder()->getStoreId())->setProductId($this->getProductId()); } return $this->magentoProduct; }
/** * @param int $storeId * @return Ess_M2ePro_Model_Magento_Product */ public function setStoreId($storeId) { $this->cache = NULL; return parent::setStoreId($storeId); }