Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 为什么没有任何搜索结果? 快速搜索表单 第/3页columns.phtml 空的 一栏五 两列左4 两列右4 三列 产品列表工具栏_Magento - Fatal编程技术网

Magento 为什么没有任何搜索结果? 快速搜索表单 第/3页columns.phtml 空的 一栏五 两列左4 两列右4 三列 产品列表工具栏

Magento 为什么没有任何搜索结果? 快速搜索表单 第/3页columns.phtml 空的 一栏五 两列左4 两列右4 三列 产品列表工具栏,magento,Magento,我想将布局设置为页/2列左.phtml。并且不显示 所以我删除了上面的代码。当我测试搜索功能时。它显示您的搜索不返回任何结果。 当我保留代码时。搜索功能正常,但左侧的布局混乱。如何纠正它。谢谢。在xml文件中再添加一行,删除左侧导航: <catalogsearch_result_index translate="label"> <label>Quick Search Form</label> <reference nam

我想将布局设置为
页/2列左.phtml
。并且不显示

所以我删除了上面的代码。当我测试搜索功能时。它显示
您的搜索不返回任何结果。


当我保留代码时。搜索功能正常,但左侧的布局混乱。如何纠正它。谢谢。

在xml文件中再添加一行,删除左侧导航:

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

        </reference>
        <reference name="content">
            <block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
                <block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml">
                    <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                        <block type="page/html_pager" name="product_list_toolbar_pager"/>
                    </block>
                    <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
                    <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
                    <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action>
                    <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>4</count></action>
                    <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>3</count></action>
                    <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                </block>
                <action method="setListOrders"/>
                <action method="setListModes"/>
                <action method="setListCollection"/>
            </block>
        </reference>
    </catalogsearch_result_index>

是。我已清除缓存。在
内部。也可以在更改后清除缓存。
<remove name="catalogsearch.leftnav" />