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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -