Commit d2d1f7b3 by chrisndodge

Merge pull request #5357 from edx/cdodge/allow-zero-percent-discount

per product, allow for zero percentage coupons
parents d8e5fca3 a28b45c4
...@@ -436,12 +436,6 @@ ...@@ -436,12 +436,6 @@
$('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon code')}"); $('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon code')}");
return false; return false;
} }
if (coupon_discount == '0') {
$('#add_coupon_form #coupon_form_error').attr('style', 'display: block !important');
$('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon discount value greater than 0')}");
$("#add_coupon_button").removeAttr('disabled');
return false;
}
if (parseInt(coupon_discount) > 100) { if (parseInt(coupon_discount) > 100) {
$('#add_coupon_form #coupon_form_error').attr('style', 'display: block !important'); $('#add_coupon_form #coupon_form_error').attr('style', 'display: block !important');
$('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon discount value less than or equal to 100')}"); $('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon discount value less than or equal to 100')}");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment