magento bundle product backend tier price 组合产品的分组价格

magento在后台显示bundle的产品时,是按照Percent Discount的折扣率显示的,不能直接显示bundle的分组价格具体是多少

主要改动文件有两个

\app\code\local\Mage\Bundle\Model\Product\Price.php

搜索  / 100

line 618

 // $tierPrice = $finalPrice – ($finalPrice * ($tierPrice / 100));
            $tierPrice = $tierPrice;

如果也要修改group的话,自己对应修改

第二个,去掉数据验证

1). 1.7的版本以上的

app\code\local\Mage\Core\etc\jstranslator.xml

line 165

  <!–   <validate-percents translate="message" module="core">
        <message>Please enter a number lower than 100.</message>
    </validate-percents>
    –>

2) 1.5的版本的js位置是 \js\prototype\validation.js line 717 这个拿掉全局的Js关于百分比的验证

建议的做法是 app\code\core\Mage\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Attributes.php line 96~97

                    //->setPriceColumnHeader(Mage::helper('bundle')->__('Percent Discount'))
                    ->setPriceColumnHeader(Mage::helper('bundle')->__('Price'))
                    //->setPriceValidation('validate-greater-than-zero validate-percents')

去掉验证,又可以改名字

第三,其他一些文件,比如对应前台主题文件需要修改,不然就会

Buy 1 with 300% discount each

Buy 2 with 200% discount each

暂时就是这样,转载记得署名出处