I want to make a simple module who show product details without header footer and other block. At first i try to get product info by id. But that say
Fatal error: Call to a member function getBackend() on boolean in D:\x\htdocs\m1\app\code\core\Mage\Eav\Model\Entity\Abstract.php on line 816
My code
class Abdus_Ajaxproduct_LoadproductController extends Mage_Core_Controller_Front_Action{
public function getbyidAction(){
$_prdID=$this->getRequest()->getParam('id');
$_product = Mage::getModel('catalog/product')->getCollection()->addFieldToFilter('id',$_prdID);
}}
Mage::getModel('catalog/product')->load($_prdID);
does that work?