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
Magento 在类别列表页面中显示可配置的产品选项_Magento_Product_Configurable - Fatal编程技术网

Magento 在类别列表页面中显示可配置的产品选项

Magento 在类别列表页面中显示可配置的产品选项,magento,product,configurable,Magento,Product,Configurable,我想在主页上显示产品。为此,我使用的产品属于某些特殊类别 一般原则如下所述: 我的cms页面中有以下内容: {{block type=“catalog/product\u list”category\u id=“8”template=“catalog/product/list.phtml”} 对于可配置产品,我希望显示选项 我应该使用什么方法 我尝试更改list.phtml文件并添加: getChildHtml(“产品类型数据”)?> 但该子块不存在。我检查了catalog.xml的外观,发现

我想在主页上显示产品。为此,我使用的产品属于某些特殊类别

一般原则如下所述:

我的cms页面中有以下内容: {{block type=“catalog/product\u list”category\u id=“8”template=“catalog/product/list.phtml”}

对于可配置产品,我希望显示选项

我应该使用什么方法

我尝试更改list.phtml文件并添加:

getChildHtml(“产品类型数据”)?>

但该子块不存在。我检查了catalog.xml的外观,发现可配置产品有布局更新

因此,总的来说,我的问题是我应该采取什么方法: -在代码中创建块 -或更新此cms页面的布局 -还是别的什么


谢谢。

您应该为此创建自己的块。不要编辑magento core blocks代码,这是非常不鼓励的。问题是我应该如何尝试重用在产品视图中定义的现有块?