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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -