【问题标题】:Configurable Color swatch with custom theme in MagentoMagento中具有自定义主题的可配置色板
【发布时间】:2015-08-14 15:31:33
【问题描述】:

我正在尝试将可配置色样功能与自定义模板一起使用,我已复制所有文件,即 catalog.xml、configurableswatches.xml 和其他模板文件,但我无法在产品列表页面上看到颜色图标以及在产品描述页面上得到错误

Fatal error: Call to a member function getSortedChildren() on a non-object in /app/design/frontend/default/testthemes/template/catalog/product/view/type/options/configurable.phtml on line 32

如果它仅与 rwd 主题兼容,或者我们也可以将其用于自定义模板,请告诉我。

谢谢, 帕万

【问题讨论】:

    标签: magento configurable


    【解决方案1】:
    <reference name="product.info.options.wrapper">
         <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml">
        <block type="core/text_list" name="product.info.options.configurable.renderers" as="attr_renderers" />
        <block type="core/text_list" name="product.info.options.configurable.after" as="after" />
        </block>
    </reference>
    

    在catalog.xml中输入&lt;PRODUCT_TYPE_configurable translate="label" module="catalog"&gt;

    【讨论】:

      猜你喜欢
      • 2021-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-06
      • 2017-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多