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
Post a Comment