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
组和组的不同view.phtml文件;magento中的捆绑产品类型_Magento - Fatal编程技术网

组和组的不同view.phtml文件;magento中的捆绑产品类型

组和组的不同view.phtml文件;magento中的捆绑产品类型,magento,Magento,我试图在产品页面上对分组、捆绑和可配置的产品类型进行一些设计更改。到目前为止,我一直在为产品分配不同的模板,但现在不幸的是,这不是一个选项 我已经为bundle和group类型的产品设计了custom_view.phtml和custom_view 2.phtml,但我不知道如何使magento根据这些产品类型呈现这些phtml文件 有人能帮我解决这个问题吗 谢谢…查看/app/design/frontend/default/default/layout/catalog.xml 有如下几行: &l

我试图在产品页面上对分组、捆绑和可配置的产品类型进行一些设计更改。到目前为止,我一直在为产品分配不同的模板,但现在不幸的是,这不是一个选项

我已经为bundle和group类型的产品设计了custom_view.phtml和custom_view 2.phtml,但我不知道如何使magento根据这些产品类型呈现这些phtml文件

有人能帮我解决这个问题吗


谢谢…

查看/app/design/frontend/default/default/layout/catalog.xml

有如下几行:

<PRODUCT_TYPE_grouped translate="label" module="catalog>
  ...
</PRODUCT_TYPE_grouped>

我知道这个话题有点老了,但我发现自己也需要这个问题的答案,这对我来说很有用:

在bundle.xml中,查找

<PRODUCT_TYPE_bundle translate="label" module="bundle">

并添加以下参考:

    <reference name="product.info">
        <action method='setTemplate'><template>path/to/your/template/view.phtml</template></action>
    </reference>

路径/to/your/template/view.phtml

希望这有帮助:)

我已经完成了配置,请检查一下

<PRODUCT_TYPE_configurable translate="label" module="catalog">
    <label>Catalog Product View (Configurable)</label>
    <reference name="product.info">
        <action method="setTemplate">
            <template>catalog/product/configurableview.phtml</template>
        </action>
    </reference>
</PRODUCT_TYPE_configurable>

目录产品视图(可配置)
目录/产品/可配置视图.phtml

你好,蒂姆。谢谢你的帮助。我找到了那个代码,我将根据需要使用它。但是,我看不到任何与捆绑产品相关的代码。我可以复制它并将其更改为“产品类型”吗?这样行吗?谢谢你…不要在那里做。在主题的布局文件夹中的local.xml中执行此操作。您可以从bundle.xml.Hi@Ben合并bundle产品类型的更改,谢谢您的回复。我对代码有点困惑,你能给我一个示例代码吗?对于捆绑产品,我如何实现它?谢谢…我无法使用您提供的代码呈现捆绑或可配置的产品@Tim its仍然使用默认视图呈现。phtml我确实从后端和浏览器中删除了所有缓存,但仍然相同。。。有什么想法吗?非常感谢。
<PRODUCT_TYPE_configurable translate="label" module="catalog">
    <label>Catalog Product View (Configurable)</label>
    <reference name="product.info">
        <action method="setTemplate">
            <template>catalog/product/configurableview.phtml</template>
        </action>
    </reference>
</PRODUCT_TYPE_configurable>