hi want load multiple category id in magento, used in fetch 1st category of subcategory not rest of category.
$category = $model->load(79,80,91);
you can use this:
$categories = array(1,2,3); $category = mage::getmodel('catalog/category')->getcollection()->addattributetofilter('entity_id', array('in'=>$categories)); foreach($category $categorys) { //or somthing }
Comments
Post a Comment