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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -