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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -