Magento category filter by custom attributes -


i have added custom attributes categories in magento need select categories these attributes filter in custom module.can me please ?any highly appreciated.

thanks, irphan

$categories = mage::getmodel('catalog/category')     ->getcollection()     ->addattributetofilter('attribute_code_here', 'value_here'); $categories->addattributetofilter('parent_id', 2);//if want children of specific category     foreach ($categories $category){         //do $category     } 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -