How to configure the maximum discount percent in magento for the cart amount.
Example: Cart value is 3,50,000
Coupon Code discount applicable : 20%
Discount applicable 70,000
However I want to limit this to 50,000 only.
discountmagento-1.9shopping-cart-price-rules
How to configure the maximum discount percent in magento for the cart amount.
Example: Cart value is 3,50,000
Coupon Code discount applicable : 20%
Discount applicable 70,000
However I want to limit this to 50,000 only.
Best Answer
Surprisingly, this is not possible in the Magento 1.x without an extension or code modification.
To add this feature in our module we had to:
1) add a new field
max_discount
in the tablesalesrule
2) observe event
salesrule_validator_process
3) keep track of all discounts given to item by rule_id (just remember them in a variable)
4) when apply next discount to an item, check if it is in the range.