【问题标题】:how to show all custom options in right side in product view page with magento?如何使用magento在产品视图页面的右侧显示所有自定义选项?
【发布时间】:2014-07-07 13:09:18
【问题描述】:

我在自定义选项的管理中添加了颜色、尺寸和保修。我想在产品视图页面的右栏中显示这些自定义选项,但它没有显示在右侧。 你能告诉我如何在右侧显示自定义选项吗?

如果有人知道,请帮助我。 谢谢!

【问题讨论】:

    标签: magento magento-1.7 magento-1.8


    【解决方案1】:

    试试下面的代码:

    <?php if ($_product->isSaleable() && $_product->hasOptions()):?>
                    <?php echo $this->getBlockHtml('container1', '', true, true) ?>
                <?php endif;?>
    
    <?php if ($_product->isSaleable() && $_product->hasOptions()):?>
                    <?php echo $this->getBlockHtml('container2', '', true, true) ?>
                <?php endif;?>
    

    【讨论】:

    • 不,它不起作用。你能告诉我我必须使用此代码的路径吗?
    【解决方案2】:

    Amit 的代码应该可以工作。但是,您能否确保属性在前端的产品视图页面上可见设置为是。

    【讨论】:

    • 是的,它在产品页面中可见,但不在右栏中。我想在右栏中显示自定义选项,尽管我的产品视图页面设计为 2 列。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多