Magento design update to replace list.phtml on search results page only

时光毁灭记忆、已成空白 提交于 2019-12-04 16:59:19

You should create the file: app/design/frontend/YOURPACKAGE/YOURTHEME/layout/local.xml having the content:

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
  <catalogsearch_result_index>
    <reference name="search_result_list">
        <action method="setTemplate"><template>custom/list.phtml</template></action>
    </reference>
  </catalogsearch_result_index>
</layout>

and to create your custom template like app/design/frontend/YOURPACKAGE/YOURTHEME/template/custom/list.phtml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!