Step 4: Extend Mage_Catalog_Block_Category_View

Create a new file, and directories, called app/code/local/MyCompany/Catalog/Block/Category/View.php. We’re extending the core class here so our module will be separate from the core code base. When upgrading, we won’t have to worry about our code not working or having to patch files.
{code type=php} getBlockHtml(‘product_featured’);
}
}
?> {/code}

Step 5: Modify the templates

Edit app/design/frontend/default/default/template/catalog/category/view.phtml and add the following code:
{code type=html}>getFeaturedProductHtml()?>{/code}

ight above this line:
{code type=html}>getProductListHtml()?>{/code}

Create app/design/frontend/default/default/template/catalog/product/featured.phtml and add some product info HTML to show the featured product. Here is an example that simply displays a link to the product:
{code type=php}>getFeaturedProduct() ?>
Check this out:{/code}

Step 5: Add new blocks to the app/etc/local.xml

Add the following inside the config global tag:

{code type=html}>

MyCompany_Catalog_Block_Product_Featured

MyCompany_Catalog_Block_Category_View

{/code}

I hope this helps you add a “Featured Product” feature. It certainly feels thorough, but if I left anything out, please let me know and I’ll be happy to help.