Magento Category Filter Error -
$category = mage::getmodel('catalog/category')->load($currentcategory->getid()); $_productcollection = $category->getproductcollection()->addfieldtofilter('genre', array('finset' => '126'))->addattributetofilter('category_ids',array('finset'=>'14')); mage::getmodel('catalog/layer')->prepareproductcollection($_productcollection); $_productcollection = $_productcollection->load();
the above statement giving error, please me run this.
what trying exactly?
if call $category->getproductcollection
, products in category loaded no need category filter. think magento above 1.4, category_ids
doesn't exist anymore.
Comments
Post a Comment