Step 1: Go to there and comment the line:
app/code/core/Mage/Rule/Model-------->Abstract.php
if ((int)$this->getDiscountAmount() < 0) {
Mage::throwException(Mage::helper(‘rule’)->__(‘Invalid discount amount.’));
}
Step 2: Go here and commented the below line:
app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab------->Actions.php
‘class’ => ‘validate-not-negative-number’,
app/code/core/Mage/Rule/Model-------->Abstract.php
if ((int)$this->getDiscountAmount() < 0) {
Mage::throwException(Mage::helper(‘rule’)->__(‘Invalid discount amount.’));
}
Step 2: Go here and commented the below line:
app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab------->Actions.php
‘class’ => ‘validate-not-negative-number’,
its working only for shipping cart price rule
ReplyDeleteIt can be done via going to this path and edit app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/action.php
Deletecomment this line:
'class' => 'validate-not-negative-number',
Thanks
ReplyDelete