Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
Xml Magento类别自定义布局更新-前端未显示正确的.phtml文件_Xml_Magento - Fatal编程技术网

Xml Magento类别自定义布局更新-前端未显示正确的.phtml文件

Xml Magento类别自定义布局更新-前端未显示正确的.phtml文件,xml,magento,Xml,Magento,我以前创建过类别,并且能够在前端显示正确的自定义布局。复制这些类别的设置时,不会显示正确的布局 在“自定义布局更新”字段中: <reference name="product_list"> <action method="setTemplate"> <template>catalog/product/canada-grid.phtml</template> </action> </refere

我以前创建过类别,并且能够在前端显示正确的自定义布局。复制这些类别的设置时,不会显示正确的布局

在“自定义布局更新”字段中:

<reference name="product_list">
     <action method="setTemplate">
         <template>catalog/product/canada-grid.phtml</template>
     </action>
</reference>

目录/产品/canada-grid.phtml
当我重新索引布局时

<template>catalog/product/list.phtml</template>
catalog/product/list.phtml

我已尝试更改设置,但由于某种原因,布局为“list.phtml”,它来自默认文件夹,而不是当前主题。

我们已解决此问题。自定义布局更新字段需要统一。如果您有多个存储视图,则需要将自定义布局更新xml代码放在默认存储视图以及希望看到更改的存储视图上

我们已经解决了这个问题。自定义布局更新字段需要统一。如果您有多个存储视图,则需要将自定义布局更新xml代码放在默认存储视图以及希望看到更改的存储视图上