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
Php Magento:希望目录/图层/视图结果显示在目录/类别/视图中_Php_Magento_Filter - Fatal编程技术网

Php Magento:希望目录/图层/视图结果显示在目录/类别/视图中

Php Magento:希望目录/图层/视图结果显示在目录/类别/视图中,php,magento,filter,Php,Magento,Filter,我使用 但是filters部分位于类别/视图之外。phtml 我更改了catelog.xml如下: <catalog_category_layered translate="label"> <label>Catalog Category (Anchor)</label> <reference name="content"> <block type="catalog/layer_view"

我使用

但是filters部分位于
类别/视图之外。phtml
我更改了
catelog.xml
如下:

<catalog_category_layered translate="label">
        <label>Catalog Category (Anchor)</label>
        <reference name="content">
            <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
        </reference>  
.
.
.

目录类别(锚定)
.
.
.

如何在我的
目录/类别/视图
块中的
层/视图.phtml
中显示价格范围。

我猜您指的是左面板价格范围过滤器。只需检查您的类别是否设置为is Anchor yes。由于其Magento默认功能,您无需自定义任何内容

我希望您了解magento覆盖的概念,并通过覆盖修改所有内容。因此,请在参考内容下使用此选项,而不是左键

目录类别(锚定)在此处输入图像描述BEL> 第页/2列-left.phtml
如果它不起作用,请尝试使用catalog\u category\u default标记放置它,在激活模板路径提示“on”后,在页面中显示结果,但不在category/view.phtml块中,这样我就无法将其放置在category/view.phtml文件下我想要的位置。请跟随我的最后一条评论。这对我来说很好。过滤器将出现在产品列表页面下,不要只是把你的答案评论作为新答案。很难找出你使用的是哪一个…因为Stackoverflow显示了最后一篇评论文章。