i have code that show all category with details but i want to show "include_in_menu" yes or no in output array also .
i am using below code :
$collection = Mage::getModel("catalog/category")->getCollection()->addAttributeToSelect("name")->addAttributeToFilter("is_active", "1")->setLoadProductCount(true)->setProductStoreId($store);
Array output that i get :
"categories": [
{
"category_id": "11",
"parent_id": "3",
"name": "adbcd",
"is_active": "1",
"level": "2",
"products_count": 0,
"display_mode": "PRODUCTS",
"thumbnail_url": null,
"children": 10
},
{
"category_id": "12",
"parent_id": "85",
"name": "abc",
"is_active": "1",
"level": "3",
"products_count": 42,
"display_mode": "PRODUCTS",
"thumbnail_url": null,
"children": 0
},
i want to add is include_in_menu to array how can it be done