Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d2d1f7b3
Commit
d2d1f7b3
authored
Sep 24, 2014
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5357 from edx/cdodge/allow-zero-percent-discount
per product, allow for zero percentage coupons
parents
d8e5fca3
a28b45c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
+0
-6
No files found.
lms/templates/instructor/instructor_dashboard_2/e-commerce.html
View file @
d2d1f7b3
...
...
@@ -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')}"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment