首页 > 解决方案 > 隐藏 magento 默认可配置选项并创建自己的

问题描述

我想在产品页面上隐藏默认的 magento 1.9 可配置选项选择并创建我自己的产品选择,如尺寸、颜色等。我如何在 magenot 1.9 中做到这一点

标签: magento

解决方案


您可以将可配置选项的默认模板替换为以下内容/app/design/frontend/[your]/[theme]/layout/local.xml

<PRODUCT_TYPE_configurable>
    <reference name="product.info.options.configurable">
        <action method="setTemplate"><template>path/to/your/template.phtml</template></action>
    <reference>
</PRODUCT_TYPE_configurable>

我建议从一份副本开始以/app/design/frontend/base/default/template/catalog/product/view/type/options/configurable.phtml供参考,这样您就可以看到提取相关数据的代码。

否则,您可以自定义您的代码,app/design/frontend/[your]/[theme]/template/path/to/your/file.phtml直到您心满意足!


推荐阅读