i am writing my extension and i have troubles in my extension layout xml file. I need override my_theme/catalog/product/list.phtml to my_theme/myextension/mylist.phtml
I am trying to write the next code:
<?xml version="1.0"?>
<layout version="0.1.0">
<catalog_category_layered>
<reference name="catalog_product_list">
<action method="setTemplate">
<template>myextension/mylist.phtml</template>
</action>
</reference>
</catalog_category_layered>
</layout>
But this no working. Help me please
Best Answer
To call methods on a block, you have to make sure two things:
e.g. here:
The name is
product_list
notcatalog_product_list
. And in the layered_navigation block it isproduct_list
too, so change the reference and it should work