| 21987 |
kshitij.so |
1 |
<style>
|
|
|
2 |
.row{
|
|
|
3 |
margin:0 auto;
|
|
|
4 |
}
|
|
|
5 |
.modal-content{
|
|
|
6 |
background : white;
|
|
|
7 |
}
|
|
|
8 |
.modelHeaderCustom{
|
|
|
9 |
font-size:14px;
|
|
|
10 |
font-weight:bold;
|
|
|
11 |
}
|
|
|
12 |
.border-highlight{
|
|
|
13 |
border : 3px solid red;
|
|
|
14 |
}
|
|
|
15 |
hr{
|
|
|
16 |
background-color:#007aff;
|
|
|
17 |
border:none;
|
|
|
18 |
height:1px;
|
|
|
19 |
background:#007aff;
|
|
|
20 |
}
|
|
|
21 |
.control-label {
|
|
|
22 |
margin-top: 0;
|
|
|
23 |
margin-bottom: 0;
|
|
|
24 |
padding-top: 7px;
|
|
|
25 |
font-weight:bold;
|
|
|
26 |
font-size:14px;
|
|
|
27 |
}
|
|
|
28 |
.form-group{
|
|
|
29 |
border-bottom: 1px solid #eff2f7;
|
|
|
30 |
padding-bottom: 15px;
|
|
|
31 |
margin-bottom: 15px;
|
|
|
32 |
}
|
|
|
33 |
.right{
|
|
|
34 |
float:right;
|
|
|
35 |
}
|
|
|
36 |
.form-control{
|
|
|
37 |
color:black;
|
|
|
38 |
text-transform:uppercase;
|
|
|
39 |
}
|
| 22219 |
ashik.ali |
40 |
.table-align-center{
|
|
|
41 |
text-align:center;
|
| 21987 |
kshitij.so |
42 |
}
|
|
|
43 |
</style>
|
| 22245 |
ashik.ali |
44 |
|
|
|
45 |
<script type="text/javascript">
|
|
|
46 |
var cartItemIndex = 0;
|
| 23181 |
ashik.ali |
47 |
|
|
|
48 |
$(function() {
|
|
|
49 |
$('input[name="dateOfBirth"]').daterangepicker({
|
|
|
50 |
"singleDatePicker": true,
|
|
|
51 |
"showDropdowns": true,
|
|
|
52 |
"startDate": "01/01/2000",
|
|
|
53 |
"autoUpdateInput": false,
|
|
|
54 |
locale: {
|
|
|
55 |
cancelLabel: 'Clear',
|
|
|
56 |
format: 'DD/MM/YYYY'
|
|
|
57 |
}
|
|
|
58 |
});
|
|
|
59 |
|
|
|
60 |
$('input[name="dateOfBirth"]').on('apply.daterangepicker', function(ev, picker) {
|
|
|
61 |
$(this).val(picker.startDate.format('DD/MM/YYYY'));
|
|
|
62 |
});
|
|
|
63 |
|
|
|
64 |
$('input[name="dateOfBirth"]').on('cancel.daterangepicker', function(ev, picker) {
|
|
|
65 |
$(this).val('');
|
|
|
66 |
});
|
|
|
67 |
});
|
|
|
68 |
|
| 22245 |
ashik.ali |
69 |
</script>
|
|
|
70 |
|
| 21987 |
kshitij.so |
71 |
<section class="wrapper">
|
|
|
72 |
<div class="row">
|
|
|
73 |
<div class="col-lg-12">
|
|
|
74 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
|
|
75 |
<ol class="breadcrumb">
|
| 22116 |
amit.gupta |
76 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 21987 |
kshitij.so |
77 |
<li><i class="icon_table"></i>ORDER</li>
|
|
|
78 |
</ol>
|
|
|
79 |
</div>
|
|
|
80 |
</div>
|
|
|
81 |
<form id="cd">
|
| 22245 |
ashik.ali |
82 |
|
| 22642 |
amit.gupta |
83 |
<div id="order-details" style="background:white;background-color:white;padding:10px">
|
| 21987 |
kshitij.so |
84 |
#if($cartObj.size()==0)
|
|
|
85 |
<div class="card row"
|
|
|
86 |
<p>Your Cart is Empty.</p>
|
|
|
87 |
</div>
|
|
|
88 |
#else
|
| 22642 |
amit.gupta |
89 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Product Information</h4>
|
| 22219 |
ashik.ali |
90 |
<div class = "row">
|
|
|
91 |
<div class="table-responsive">
|
|
|
92 |
<table class="table">
|
|
|
93 |
<tr>
|
|
|
94 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Description</h4></td>
|
|
|
95 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Quantity</h4></dt>
|
|
|
96 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
| 23181 |
ashik.ali |
97 |
<td><h4 class="grnProductInfo modelHeaderCustom">Damage Protection</h4></td>
|
| 22219 |
ashik.ali |
98 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
| 22574 |
ashik.ali |
99 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Discount</h4></td>
|
| 22219 |
ashik.ali |
100 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
|
|
101 |
</tr>
|
| 22245 |
ashik.ali |
102 |
|
| 22219 |
ashik.ali |
103 |
#foreach ($cartItem in $cartObj)
|
|
|
104 |
#if($cartItem.getQuantity() == 1)
|
|
|
105 |
<tr>
|
|
|
106 |
<td>$cartItem.getDisplayName()</td>
|
|
|
107 |
<td class = "table-align-center">1</td>
|
|
|
108 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| 22642 |
amit.gupta |
109 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="input-sm serialNumber form-control"></div></td>
|
|
|
110 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" id="insuranceAmount" name="insuranceAmount" class="input-sm insuranceAmount form-control"></div></td>
|
| 22219 |
ashik.ali |
111 |
#else
|
| 22642 |
amit.gupta |
112 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control input-sm" readonly></div></td>
|
|
|
113 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control input-sm" readonly></div></td>
|
| 22219 |
ashik.ali |
114 |
#end
|
| 22642 |
amit.gupta |
115 |
<td class = "table-align-center">
|
| 22660 |
ashik.ali |
116 |
<input type="number" class="unitPrice form-control input-sm" name="unitPrice" id = "unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$mopPriceMap.get($cartItem.getItemId()).getPrice() - MRP">
|
| 22642 |
amit.gupta |
117 |
</td>
|
| 22660 |
ashik.ali |
118 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
119 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" mop="true" name="discountAmount" class="discountAmount form-control input-sm" placeholder="Up to $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"></div></td>
|
| 22573 |
ashik.ali |
120 |
#else
|
| 22642 |
amit.gupta |
121 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" mop="false" value = "0" name="discountAmount" class="discountAmount form-control input-sm" readonly></div></td>
|
| 22573 |
ashik.ali |
122 |
#end
|
| 22642 |
amit.gupta |
123 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice form-control input-sm" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22219 |
ashik.ali |
124 |
</tr>
|
| 22574 |
ashik.ali |
125 |
#else
|
| 22245 |
ashik.ali |
126 |
#if($cartItem.getItemType() =="SERIALIZED")
|
|
|
127 |
#set($start = 1)
|
|
|
128 |
#set($end = $cartItem.getQuantity())
|
|
|
129 |
#set($range = [$start..$end])
|
|
|
130 |
|
|
|
131 |
#foreach ($index in $range)
|
|
|
132 |
<tr>
|
|
|
133 |
<td>$cartItem.getDisplayName()</td>
|
|
|
134 |
<td class = "table-align-center">1</td>
|
| 22642 |
amit.gupta |
135 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber input-sm form-control"></div></td>
|
|
|
136 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" name="insuranceAmount" class="insuranceAmount form-control input-sm"></div></td>
|
| 22681 |
amit.gupta |
137 |
<td class = "table-align-center"><input type="number" class="unitPrice form-control input-sm" name="unitPrice" quantity="1" itemId="$cartItem.getItemId()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$mopPriceMap.get($cartItem.getItemId()).getPrice() - MRP"></td>
|
| 22660 |
ashik.ali |
138 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
139 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" mop="true" name="discountAmount" class="discountAmount form-control input-sm" placeholder="Up to $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"></div></td>
|
| 22573 |
ashik.ali |
140 |
#else
|
| 22642 |
amit.gupta |
141 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" mop="false" value = "0" name="discountAmount" class="discountAmount form-control input-sm" readonly></div></td>
|
| 22573 |
ashik.ali |
142 |
#end
|
| 22674 |
amit.gupta |
143 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22245 |
ashik.ali |
144 |
</tr>
|
|
|
145 |
#end
|
|
|
146 |
#else
|
|
|
147 |
<td>$cartItem.getDisplayName()</td>
|
|
|
148 |
<td class = "table-align-center">$cartItem.getQuantity()</td>
|
| 22642 |
amit.gupta |
149 |
<td class = "table-align-center"><div class="input-group"><input type="text " itemId="$cartItem.getItemId()" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control input-sm" readonly></div></td>
|
|
|
150 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control input-sm" readonly></div></td>
|
| 22660 |
ashik.ali |
151 |
<td class = "table-align-center"><input type="number" class="unitPrice input-sm" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$mopPriceMap.get($cartItem.getItemId()).getPrice() - MRP"></td>
|
|
|
152 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
153 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" mop="true" name="discountAmount" class="discountAmount form-control input-sm" placeholder="Up to $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount()"></div></td>
|
| 22573 |
ashik.ali |
154 |
#else
|
| 22642 |
amit.gupta |
155 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" mop="false" value = "0" name="discountAmount" class="discountAmount form-control input-sm" readonly></div></td>
|
| 22573 |
ashik.ali |
156 |
#end
|
| 22642 |
amit.gupta |
157 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22219 |
ashik.ali |
158 |
#end
|
|
|
159 |
#end
|
|
|
160 |
#end
|
|
|
161 |
</table>
|
| 21987 |
kshitij.so |
162 |
</div>
|
| 22219 |
ashik.ali |
163 |
</div>
|
|
|
164 |
|
| 21987 |
kshitij.so |
165 |
</div>
|
|
|
166 |
#end
|
| 22642 |
amit.gupta |
167 |
<div id="customer-details" style="background:white;background-color:white;padding:10px;">
|
| 22643 |
amit.gupta |
168 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Customer Information</h4>
|
| 22245 |
ashik.ali |
169 |
<div>
|
|
|
170 |
<div class = "row">
|
|
|
171 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
172 |
<input placeholder="First Name" id="firstName" name="firstName" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
173 |
</div>
|
|
|
174 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
175 |
<input placeholder="Last Name" id="lastName" name="lastName" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
176 |
</div>
|
|
|
177 |
<div class="col-lg-3 form-group">
|
| 22644 |
amit.gupta |
178 |
<input placeholder="Email*" id="email" name="email" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
179 |
</div>
|
|
|
180 |
<div class="col-lg-3 form-group">
|
| 22860 |
ashik.ali |
181 |
<input placeholder = "Phone Number*" id="phone" addressId="" name="phone" type="text" value="" class="form-control phone input-sm">
|
| 22245 |
ashik.ali |
182 |
</div>
|
|
|
183 |
<div class="col-lg-2 form-group">
|
| 23189 |
ashik.ali |
184 |
<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="text" value="" class="">
|
| 22245 |
ashik.ali |
185 |
</div>
|
|
|
186 |
|
|
|
187 |
</div>
|
|
|
188 |
<div class = "row">
|
|
|
189 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
190 |
<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
191 |
</div>
|
|
|
192 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
193 |
<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
194 |
</div>
|
|
|
195 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
196 |
<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
197 |
</div>
|
|
|
198 |
</div>
|
|
|
199 |
<div class = "row">
|
|
|
200 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
201 |
<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
202 |
</div>
|
|
|
203 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
204 |
<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
205 |
</div>
|
|
|
206 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
207 |
<input placeholder="City" id="city" name="city" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
208 |
</div>
|
|
|
209 |
<div class="col-lg-4 form-group">
|
| 22860 |
ashik.ali |
210 |
<select class="form-control input-sm" id = "state" name = "state" placeholder="State">
|
| 23299 |
ashik.ali |
211 |
<option value="" disabled selected>State</option>
|
|
|
212 |
#foreach($stateName in $stateNames)
|
|
|
213 |
#if($retailerStateName == $stateName)
|
|
|
214 |
<option value="$stateName" selected>$stateName</option>
|
|
|
215 |
#else
|
|
|
216 |
<option value="$stateName">$stateName</option>
|
|
|
217 |
#end
|
|
|
218 |
#end
|
|
|
219 |
|
| 22245 |
ashik.ali |
220 |
</select>
|
|
|
221 |
</div>
|
|
|
222 |
</div>
|
|
|
223 |
</div>
|
| 21987 |
kshitij.so |
224 |
<div id="payment-details" style="background:white;background-color:white;">
|
|
|
225 |
<div class="row">
|
|
|
226 |
<div class="col-lg-6 right">
|
|
|
227 |
<div class="col-lg-6">
|
|
|
228 |
<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
|
|
|
229 |
</div>
|
|
|
230 |
<div class="col-lg-6">
|
| 22642 |
amit.gupta |
231 |
<input type="number" class="netPayableAmount form-control input-sm" name="" value="0" readonly>
|
| 21987 |
kshitij.so |
232 |
</div>
|
|
|
233 |
</div>
|
|
|
234 |
</div>
|
|
|
235 |
<p></p>
|
| 23367 |
ashik.ali |
236 |
<div id="payment-option-id-amount-container" paymentOptionSize = $paymentOptions.size()>
|
|
|
237 |
#set($a = 0)
|
|
|
238 |
#set($b = $paymentOptions.size() - 1)
|
|
|
239 |
#set($range = [$a..$b])
|
|
|
240 |
|
|
|
241 |
#foreach($index in $range)
|
|
|
242 |
#set($paymentOption = $paymentOptions[$index])
|
|
|
243 |
<div class="row">
|
|
|
244 |
<div class="col-lg-6 right">
|
|
|
245 |
<div class="col-lg-6">
|
|
|
246 |
<h4 class="grnProductInfo modelHeaderCustom right">$paymentOption.getName() :</h4>
|
|
|
247 |
</div>
|
|
|
248 |
<div class="col-lg-6">
|
|
|
249 |
<input type="number" id="paymentOptionIdAmount${index}" name="paymentOptionIdAmount${index}" class="form-control paymentOptionAmount amount input-sm" value="0" paymentOptionId="$paymentOption.getId()">
|
|
|
250 |
</div>
|
| 23353 |
ashik.ali |
251 |
</div>
|
| 21987 |
kshitij.so |
252 |
</div>
|
| 23367 |
ashik.ali |
253 |
#end
|
|
|
254 |
</div>
|
| 21987 |
kshitij.so |
255 |
</div>
|
|
|
256 |
<div id="create-order" style="padding:10px;">
|
|
|
257 |
<div class="row">
|
|
|
258 |
<div class="col-xs-3" style="float:right;">
|
|
|
259 |
<button class="btn btn-primary order-checkout" type="submit" style="width:100%;border-radius:0px;">Create Order</button>
|
|
|
260 |
</div>
|
|
|
261 |
</div>
|
|
|
262 |
</div>
|
|
|
263 |
</form>
|
| 23347 |
ashik.ali |
264 |
</section>
|
|
|
265 |
<script type="text/javascript" src="resources/js/create-order.js"></script>
|