i have a really weird problem in magento 1.6. I’m trying to fix the tabs on the product description page.
I have the following error:
Fatal error: Call to a member function getData() on a non-object in ... tabs.phtml
What i tried so far.
Product displays in the view.phtml template file. View.phtml calls $this->getChildHtml(’info_tabs’).
In view.phtml $this->getProduct(); returns an object with details regarding the selected product BUT
in tabs.phtml $this->getProduct(); does not. That is why i get the Fatal error.
When i replace
$_product = Mage::getModel(’catalog/product’)->load($_myproduct->getData(’entity_id’));
$_product = Mage::getModel(’catalog/product’)->load(117);
it works, but of course it needs to get the id of the selected product.
Anybody faced this issue?
Btw products were imported and not manually added, but it shouldn’t make a difference since in view.phtml i gets the product object.