Go to app/code/core/Mage/Catalog/Block/Product and created a new file called Manufacturer.php and pasted this block code:
public function getAllManu()
{
$product = Mage::getModel('catalog/product');
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
->setEntityTypeFilter($product->getResource()->getTypeId())
->addFieldToFilter('attribute_code', 'manufacturer');
$attribute = $attributes->getFirstItem()->setEntity($product->getResource());
$manufacturers = $attribute->getSource()->getAllOptions(false);
return $manufacturers;
}
Then go to /app/design/frontend/[theme name]/[theme name]/template/catalog/product and created a new .phtml file called manufacturer.phtml and paste this code:
<ul id="manufacturer_list">
<?php foreach ($this->getAllManu() as $manufacturer): ?>
<li><a href="<?php Mage::getURL() ?>catalogsearch/advanced/result/?&manufacturer;[]=<?php echo $manufacturer['value'] ?>"><?php echo $manufacturer['label'] ?></a></li>
<?php endforeach; ?>
</ul>
From there log into the backend and created a new page via the CMS menu and inserted the following code:
{{block type="catalog/product_manufacturer" name="home.catalog.product.manufacturer" alias="product_manufacturer" template="catalog/product/manufacturer.phtml"}}
Manufacturer.php
manufacturer.phtml
——————–
Magento ver: 1.3.2.4