| 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;
|
|
|
47 |
</script>
|
|
|
48 |
|
| 21987 |
kshitij.so |
49 |
<section class="wrapper">
|
|
|
50 |
<div class="row">
|
|
|
51 |
<div class="col-lg-12">
|
|
|
52 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
|
|
53 |
<ol class="breadcrumb">
|
| 22116 |
amit.gupta |
54 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 21987 |
kshitij.so |
55 |
<li><i class="icon_table"></i>ORDER</li>
|
|
|
56 |
</ol>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<form id="cd">
|
| 22245 |
ashik.ali |
60 |
|
| 22642 |
amit.gupta |
61 |
<div id="order-details" style="background:white;background-color:white;padding:10px">
|
| 21987 |
kshitij.so |
62 |
#if($cartObj.size()==0)
|
|
|
63 |
<div class="card row"
|
|
|
64 |
<p>Your Cart is Empty.</p>
|
|
|
65 |
</div>
|
|
|
66 |
#else
|
| 22642 |
amit.gupta |
67 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Product Information</h4>
|
| 22219 |
ashik.ali |
68 |
<div class = "row">
|
|
|
69 |
<div class="table-responsive">
|
|
|
70 |
<table class="table">
|
|
|
71 |
<tr>
|
|
|
72 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Description</h4></td>
|
|
|
73 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Quantity</h4></dt>
|
|
|
74 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
|
|
75 |
<td><h4 class="grnProductInfo modelHeaderCustom">Insurance Amount</h4></td>
|
|
|
76 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
| 22574 |
ashik.ali |
77 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Discount</h4></td>
|
| 22219 |
ashik.ali |
78 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
|
|
79 |
</tr>
|
| 22245 |
ashik.ali |
80 |
|
| 22219 |
ashik.ali |
81 |
#foreach ($cartItem in $cartObj)
|
|
|
82 |
#if($cartItem.getQuantity() == 1)
|
|
|
83 |
<tr>
|
|
|
84 |
<td>$cartItem.getDisplayName()</td>
|
|
|
85 |
<td class = "table-align-center">1</td>
|
|
|
86 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| 22642 |
amit.gupta |
87 |
<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>
|
|
|
88 |
<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 |
89 |
#else
|
| 22642 |
amit.gupta |
90 |
<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>
|
|
|
91 |
<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 |
92 |
#end
|
| 22642 |
amit.gupta |
93 |
<td class = "table-align-center">
|
| 22660 |
ashik.ali |
94 |
<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 |
95 |
</td>
|
| 22660 |
ashik.ali |
96 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
97 |
<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 |
98 |
#else
|
| 22642 |
amit.gupta |
99 |
<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 |
100 |
#end
|
| 22642 |
amit.gupta |
101 |
<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 |
102 |
</tr>
|
| 22574 |
ashik.ali |
103 |
#else
|
| 22245 |
ashik.ali |
104 |
#if($cartItem.getItemType() =="SERIALIZED")
|
|
|
105 |
#set($start = 1)
|
|
|
106 |
#set($end = $cartItem.getQuantity())
|
|
|
107 |
#set($range = [$start..$end])
|
|
|
108 |
|
|
|
109 |
#foreach ($index in $range)
|
|
|
110 |
<tr>
|
|
|
111 |
<td>$cartItem.getDisplayName()</td>
|
|
|
112 |
<td class = "table-align-center">1</td>
|
| 22642 |
amit.gupta |
113 |
<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>
|
|
|
114 |
<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>
|
| 22660 |
ashik.ali |
115 |
<td class = "table-align-center"><input type="number" class="unitPrice input-sm" name="unitPrice" quantity="1" 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>
|
|
|
116 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
117 |
<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 |
118 |
#else
|
| 22642 |
amit.gupta |
119 |
<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 |
120 |
#end
|
| 22642 |
amit.gupta |
121 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22245 |
ashik.ali |
122 |
</tr>
|
|
|
123 |
#end
|
|
|
124 |
#else
|
|
|
125 |
<td>$cartItem.getDisplayName()</td>
|
|
|
126 |
<td class = "table-align-center">$cartItem.getQuantity()</td>
|
| 22642 |
amit.gupta |
127 |
<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>
|
|
|
128 |
<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 |
129 |
<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>
|
|
|
130 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
131 |
<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 |
132 |
#else
|
| 22642 |
amit.gupta |
133 |
<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 |
134 |
#end
|
| 22642 |
amit.gupta |
135 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22219 |
ashik.ali |
136 |
#end
|
|
|
137 |
#end
|
|
|
138 |
#end
|
|
|
139 |
</table>
|
| 21987 |
kshitij.so |
140 |
</div>
|
| 22219 |
ashik.ali |
141 |
</div>
|
|
|
142 |
|
| 21987 |
kshitij.so |
143 |
</div>
|
|
|
144 |
#end
|
| 22642 |
amit.gupta |
145 |
<div id="customer-details" style="background:white;background-color:white;padding:10px;">
|
| 22643 |
amit.gupta |
146 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Customer Information</h4>
|
| 22245 |
ashik.ali |
147 |
<div>
|
|
|
148 |
<div class = "row">
|
|
|
149 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
150 |
<input placeholder="First Name" id="firstName" name="firstName" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
151 |
</div>
|
|
|
152 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
153 |
<input placeholder="Last Name" id="lastName" name="lastName" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
154 |
</div>
|
|
|
155 |
<div class="col-lg-3 form-group">
|
| 22644 |
amit.gupta |
156 |
<input placeholder="Email*" id="email" name="email" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
157 |
</div>
|
|
|
158 |
<div class="col-lg-3 form-group">
|
| 22644 |
amit.gupta |
159 |
<input placeholder = "Phone Number*" id="phone" name="phone" type="text" value="" class="form-control phone input-sm">
|
| 22245 |
ashik.ali |
160 |
</div>
|
|
|
161 |
<div class="col-lg-2 form-group">
|
| 22644 |
amit.gupta |
162 |
<input placeholder = "Date Of Birth*" id="dateOfBirth" name="dateOfBirth" type="date" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
163 |
</div>
|
|
|
164 |
|
|
|
165 |
</div>
|
|
|
166 |
<div class = "row">
|
|
|
167 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
168 |
<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
169 |
</div>
|
|
|
170 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
171 |
<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
172 |
</div>
|
|
|
173 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
174 |
<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
175 |
</div>
|
|
|
176 |
</div>
|
|
|
177 |
<div class = "row">
|
|
|
178 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
179 |
<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
180 |
</div>
|
|
|
181 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
182 |
<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
183 |
</div>
|
|
|
184 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
185 |
<input placeholder="City" id="city" name="city" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
186 |
</div>
|
|
|
187 |
<div class="col-lg-4 form-group">
|
| 22642 |
amit.gupta |
188 |
<select class="form-control input-sm" name = "state" placeholder="State">
|
| 22245 |
ashik.ali |
189 |
<option value="Andaman and Nicobar Islands">Andaman and Nicobar Islands</option>
|
|
|
190 |
<option value="Andhra Pradesh">Andhra Pradesh</option>
|
|
|
191 |
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
|
|
|
192 |
<option value="Assam">Assam</option>
|
|
|
193 |
<option value="Bihar">Bihar</option>
|
|
|
194 |
<option value="Chandigarh">Chandigarh</option>
|
|
|
195 |
<option value="Chhattisgarh">Chhattisgarh</option>
|
|
|
196 |
<option value="Dadra and Nagar Haveli">Dadra and Nagar Haveli</option>
|
|
|
197 |
<option value="Daman and Diu">Daman and Diu</option>
|
|
|
198 |
<option value="Delhi">Delhi</option>
|
|
|
199 |
<option value="Goa">Goa</option>
|
|
|
200 |
<option value="Gujarat">Gujarat</option>
|
|
|
201 |
<option value="Haryana">Haryana</option>
|
|
|
202 |
<option value="Himachal Pradesh">Himachal Pradesh</option>
|
|
|
203 |
<option value="Jammu and Kashmir">Jammu and Kashmir</option>
|
|
|
204 |
<option value="Jharkhand">Jharkhand</option>
|
|
|
205 |
<option value="Karnataka">Karnataka</option>
|
|
|
206 |
<option value="Kerala">Kerala</option>
|
|
|
207 |
<option value="Lakshadweep">Lakshadweep</option>
|
|
|
208 |
<option value="Madhya Pradesh">Madhya Pradesh</option>
|
|
|
209 |
<option value="Maharashtra">Maharashtra</option>
|
|
|
210 |
<option value="Manipur">Manipur</option>
|
|
|
211 |
<option value="Meghalaya">Meghalaya</option>
|
|
|
212 |
<option value="Mizoram">Mizoram</option>
|
|
|
213 |
<option value="Nagaland">Nagaland</option>
|
|
|
214 |
<option value="Orissa">Orissa</option>
|
|
|
215 |
<option value="Pondicherry">Pondicherry</option>
|
|
|
216 |
<option value="Punjab">Punjab</option>
|
|
|
217 |
<option value="Rajasthan">Rajasthan</option>
|
|
|
218 |
<option value="Sikkim">Sikkim</option>
|
|
|
219 |
<option value="Tamil Nadu">Tamil Nadu</option>
|
|
|
220 |
<option value="Tripura">Tripura</option>
|
|
|
221 |
<option value="Telangana">Telangana</option>
|
|
|
222 |
<option value="Uttaranchal">Uttaranchal</option>
|
|
|
223 |
<option value="Uttar Pradesh">Uttar Pradesh</option>
|
|
|
224 |
<option value="West Bengal">West Bengal</option>
|
|
|
225 |
</select>
|
|
|
226 |
</div>
|
|
|
227 |
</div>
|
|
|
228 |
</div>
|
| 21987 |
kshitij.so |
229 |
<div id="payment-details" style="background:white;background-color:white;">
|
|
|
230 |
<div class="row">
|
|
|
231 |
<div class="col-lg-6 right">
|
|
|
232 |
<div class="col-lg-6">
|
|
|
233 |
<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
|
|
|
234 |
</div>
|
|
|
235 |
<div class="col-lg-6">
|
| 22642 |
amit.gupta |
236 |
<input type="number" class="netPayableAmount form-control input-sm" name="" value="0" readonly>
|
| 21987 |
kshitij.so |
237 |
</div>
|
|
|
238 |
</div>
|
|
|
239 |
</div>
|
|
|
240 |
<p></p>
|
|
|
241 |
<div class="row">
|
|
|
242 |
<div class="col-lg-6 right">
|
|
|
243 |
<div class="col-lg-6">
|
|
|
244 |
<h4 class="grnProductInfo modelHeaderCustom right">Cash Amount:</h4>
|
|
|
245 |
</div>
|
|
|
246 |
<div class="col-lg-6">
|
| 22642 |
amit.gupta |
247 |
<input type="number" name="CASH" class="form-control cashAmount amount input-sm" value="0">
|
| 21987 |
kshitij.so |
248 |
</div>
|
|
|
249 |
</div>
|
|
|
250 |
</div>
|
|
|
251 |
<p></p>
|
|
|
252 |
<div class="row">
|
|
|
253 |
<div class="col-lg-6 right">
|
|
|
254 |
<div class="col-lg-6">
|
|
|
255 |
<h4 class="grnProductInfo modelHeaderCustom right">Debit/Credit Card Amount:</h4>
|
|
|
256 |
</div>
|
|
|
257 |
<div class="col-lg-6">
|
| 22642 |
amit.gupta |
258 |
<input type="number" name="CARD" class="form-control cardAmount amount input-sm" value="0">
|
| 21987 |
kshitij.so |
259 |
</div>
|
|
|
260 |
</div>
|
|
|
261 |
</div>
|
|
|
262 |
<p></p>
|
|
|
263 |
<div class="row">
|
|
|
264 |
<div class="col-lg-6 right">
|
|
|
265 |
<div class="col-lg-6">
|
|
|
266 |
<h4 class="grnProductInfo modelHeaderCustom right">PayTm Amount:</h4>
|
|
|
267 |
</div>
|
|
|
268 |
<div class="col-lg-6">
|
| 22642 |
amit.gupta |
269 |
<input type="number" name="PAYTM" class="form-control walletAmount amount input-sm" value="0">
|
| 21987 |
kshitij.so |
270 |
</div>
|
|
|
271 |
</div>
|
|
|
272 |
</div>
|
|
|
273 |
</div>
|
|
|
274 |
</div>
|
|
|
275 |
<div id="create-order" style="padding:10px;">
|
|
|
276 |
<div class="row">
|
|
|
277 |
<div class="col-xs-3" style="float:right;">
|
|
|
278 |
<button class="btn btn-primary order-checkout" type="submit" style="width:100%;border-radius:0px;">Create Order</button>
|
|
|
279 |
</div>
|
|
|
280 |
</div>
|
|
|
281 |
</div>
|
|
|
282 |
</form>
|
|
|
283 |
</section>
|
| 22245 |
ashik.ali |
284 |
<script type="text/javascript" src="${rc.contextPath}/resources/js/order.js"></script>
|