How can i do to get the attributes values of products in specific category?
I have a top menu with the root categories, on mouse hover, show a dropdown with subcategories, and i need to show a list of "brands".
Top menu:
Shoes | Cars
Submenu of "Shoes":
By Category
Sport
Boots
Work
By Brand
Adidas
Ford
Kia
Nike
Le Coq Sportif
Submenu of "Cars":
By Category
Sedan
Coupe
Van
By Brand
Adidas
Ford
Kia
Nike
Le Coq Sportif
I want to remove "Kia" and "Ford" under Shoes, and "Adidas", "Nike" and "Le Coq Sportif" under Cars (Except that brand is in some product)
It is possible?
Edit:
I list all brands using:
$product = Mage::getModel('catalog/product');
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
->setEntityTypeFilter($product->getResource()->getTypeId())
->addFieldToFilter('attribute_code', 'brand');