如何添加捆绑产品组价格?

时间:2014-11-14 12:13:46

标签: magento

我想为个别组添加捆绑产品价格。我怎么能这样做?

感谢

Jitendra

enter image description here

2 个答案:

答案 0 :(得分:0)

我认为你想创建一个' Grouped产品'而不是捆绑产品'。对于捆绑产品,没有任何严格的编码,这是不可能的,除非您在捆绑产品上使用pricerules(及其警告)。

答案 1 :(得分:0)

问题解决了我自己,如下所示。

1)从顶部,底部

等管理属性创建自定义属性

2)从管理属性集(如bundle

)创建新产品集

3)选择最近创建属性集的那一个并拖动在步骤1中创建的属性

4)一个radio.phtml文件并添加以下代码

$product_id = Mage::registry('current_product')->getId();;
        $attribute = Mage::getModel('catalog/product')->load($product_id);
        if($attribute->bundle_top_price>0){  
            echo  $currency_symbol = Mage::app()->getLocale()->currency( $currency_code )->getSymbol().' ';
            if($_option->getTitle()=='top'){                  
                echo number_format($attribute->bundle_top_price,2);   
            }else {  
               echo number_format($attribute->bundle_bottom_price,2);   
            }
        }
相关问题