更改Magentos搜索结果页面

时间:2012-11-19 07:46:06

标签: html magento search edit

我已经与Magento建立了一个网上商店(v 1.7),我真的需要对在前端使用全局搜索时显示搜索结果的页面进行一些更改。
我的第一个想法是调查位于result.phtml下的/app/design/frontend/default/myDesign/template/catalogsearch/文件,但我发现有一行说明

 $this->getProductListHtml() 

我想这个函数会返回构造整个搜索结果页面的字符串,但我不知道在哪里查找此函数的代码。
基本上,我只需要为该页面上显示的每个产品添加一些html,真的没什么复杂的 - 但是Magento的整个数据结构让我有点困惑。 为了修改代码,我必须在哪个文件夹中找到哪个文件?

1 个答案:

答案 0 :(得分:0)

如果您想更改产品的外观,则需要更改/app/design/frontend/default/myDesign/template/catalog/product/list.phtml.
请注意,此模板也用于类别页面。