我如何改变Magento Go中搜索页面的布局

时间:2012-05-07 10:02:20

标签: search magento layout

在“Magento go”中我的搜索页面以2栏显示,右栏显示,但我想在1栏中搜索页面。

1 个答案:

答案 0 :(得分:2)

  

请忽略Magento Go 我添加了这个实际上不适用于Magento Go的答案。道歉 - 离开这里,以防有人想在Magento CE安装上这样做。如果你想删除它,请发表评论。

我不确定它是否与Magento Go相同。但是在Magento CE中,您将更改布局文件catalogsearch.xml并更改

<catalogsearch_result_index translate="label">
    <label>Quick Search Form</label>
    <reference name="root">
        <action method="setTemplate"><template>page/2columns-right.phtml</template></action>
    </reference>

<catalogsearch_result_index translate="label">
    <label>Quick Search Form</label>
    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>