From a28b45c46dfc83b8a42eb9d9d52b61f8fa8c22e0 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Tue, 23 Sep 2014 15:29:26 -0400 Subject: [PATCH] per product, allow for zero percentage coupons --- .../instructor/instructor_dashboard_2/e-commerce.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lms/templates/instructor/instructor_dashboard_2/e-commerce.html b/lms/templates/instructor/instructor_dashboard_2/e-commerce.html index fbc009c149..37af5ad4b5 100644 --- a/lms/templates/instructor/instructor_dashboard_2/e-commerce.html +++ b/lms/templates/instructor/instructor_dashboard_2/e-commerce.html @@ -436,12 +436,6 @@ $('#add_coupon_form #coupon_form_error').text("${_('Please enter the coupon code')}"); 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) { $('#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')}");