This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
js/templates/modals/editListing Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
} else if (typeof ob.percentDiscount !== 'undefined') {
20
20
discountAmount = ob.percentDiscount;
21
21
}
22
+
23
+ const isFixedDiscount = !!ob.bigPriceDiscount;
22
24
%>
23
25
< input type ="text " class ="clrBr clrP clrSh2 " name ="discountAmount " value ="<%= discountAmount %> " placeholder ="0.00 ">
24
26
< select name ="discountType " class ="clrBr clrP nestInputRight ">
25
- < option value ="PERCENTAGE " < % if (typeof ob.percentDiscount !== 'undefined' ) print('selected') %> > < %= ob.polyT('editListing.coupons.discountTypePercent') %> </ option >
26
- < option value ="FIXED " < % if (typeof ob.bigPriceDiscount !== 'undefined' ) print('selected') %> > < %= ob.polyT('editListing.coupons.discountTypeFixed') %> </ option >
27
+ < option value ="PERCENTAGE " < % if (!isFixedDiscount ) print('selected') %> > < %= ob.polyT('editListing.coupons.discountTypePercent') %> </ option >
28
+ < option value ="FIXED " < % if (isFixedDiscount ) print('selected') %> > < %= ob.polyT('editListing.coupons.discountTypeFixed') %> </ option >
27
29
</ select >
28
30
</ div >
29
31
You can’t perform that action at this time.
0 commit comments