Php 在magento中将侧块移到中间

Php 在magento中将侧块移到中间,php,magento,zend-framework,block,move,Php,Magento,Zend Framework,Block,Move,您好,请检查此链接 这里面有一个 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"> <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">

您好,请检查此链接 这里面有一个

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
在侧栏按类别购物

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
,我需要在页面中央显示这一点。有人能帮我吗

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
我已经试过了

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>

在catalog.xml中

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
和在list.html中

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
我使用了

但是它什么也没显示基于你的问题,我不清楚你想把它放在哪个街区。有很多方法可以实现这一点,但要给你一些基本的指导

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>
尝试在后端打开模板提示。然后,您将看到围绕所有不同块的标记。在标记顶部,您将看到Magento安装的应用程序/文件夹中的文件路径。打开与侧栏导航相对应的文件(通常类似于catalog/navigation/left.phtml)。从那里,您将能够找到所需的特定代码,并可以将其放入顶部的一个块中(例如category-header.phtml、header.phtml等)。不过,我建议您创建自己的块,并可能切换到1列布局,但我还是不清楚您最终希望您的设计是什么样子

 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>

让我知道我还能提供什么帮助。

从那里,您可以删除应用于该布局的CSS样式,并创建自己的样式。
 <block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
                <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
                    <block type="catalog/layer_view" name="filter" template="catalog/layer/view.phtml"/>