How to Override Template File in Magento 1.8

extensionslayoutmagento-1.8

I want to list category page in magento which is located in
\app\design\frontend\default\\template\catalog\product\list.phtml.

In app\design\frontend\default\modern\layout\catalog.xml

<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">

But the list.phtml is overrided by a extension having

app/design/frontend/default/default/template/extensionname/product/list.phtml‌

and its xml with

<reference name="product_list">
      <action method="setTemplate"><template>path/product/list.phtml</template></action>
</reference>

How to display category page from my theme's list.phtml.

Best Answer

You should create local.xml in layout folder and set

<catalog_category_default>
    <reference name="product_list">
          <action method="setTemplate"><template>path/to/your/list.phtml</template></action>
    </reference>
</catalog_category_default>