| 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;
|
| 23821 |
amit.gupta |
47 |
accessoriesDeals = $accessoriesDeals;
|
| 23181 |
ashik.ali |
48 |
$(function() {
|
| 23886 |
amit.gupta |
49 |
$('input[name="dateOfBirth"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);
|
| 23181 |
ashik.ali |
50 |
});
|
|
|
51 |
|
| 22245 |
ashik.ali |
52 |
</script>
|
|
|
53 |
|
| 21987 |
kshitij.so |
54 |
<section class="wrapper">
|
|
|
55 |
<div class="row">
|
|
|
56 |
<div class="col-lg-12">
|
|
|
57 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
|
|
58 |
<ol class="breadcrumb">
|
| 22116 |
amit.gupta |
59 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 21987 |
kshitij.so |
60 |
<li><i class="icon_table"></i>ORDER</li>
|
|
|
61 |
</ol>
|
|
|
62 |
</div>
|
|
|
63 |
</div>
|
|
|
64 |
<form id="cd">
|
| 22245 |
ashik.ali |
65 |
|
| 22642 |
amit.gupta |
66 |
<div id="order-details" style="background:white;background-color:white;padding:10px">
|
| 21987 |
kshitij.so |
67 |
#if($cartObj.size()==0)
|
|
|
68 |
<div class="card row"
|
|
|
69 |
<p>Your Cart is Empty.</p>
|
|
|
70 |
</div>
|
|
|
71 |
#else
|
| 22642 |
amit.gupta |
72 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Product Information</h4>
|
| 22219 |
ashik.ali |
73 |
<div class = "row">
|
|
|
74 |
<div class="table-responsive">
|
|
|
75 |
<table class="table">
|
|
|
76 |
<tr>
|
|
|
77 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Description</h4></td>
|
|
|
78 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Quantity</h4></dt>
|
|
|
79 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
| 23181 |
ashik.ali |
80 |
<td><h4 class="grnProductInfo modelHeaderCustom">Damage Protection</h4></td>
|
| 22219 |
ashik.ali |
81 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
| 22574 |
ashik.ali |
82 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Discount</h4></td>
|
| 22219 |
ashik.ali |
83 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
|
|
84 |
</tr>
|
| 22245 |
ashik.ali |
85 |
|
| 22219 |
ashik.ali |
86 |
#foreach ($cartItem in $cartObj)
|
| 24052 |
amit.gupta |
87 |
#set($mrp="MRP")
|
|
|
88 |
#if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
|
|
|
89 |
#set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
|
|
|
90 |
#end
|
|
|
91 |
|
|
|
92 |
#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPrice() - $mrp")
|
| 23821 |
amit.gupta |
93 |
#set($dp = $mopPriceMap.get($cartItem.getItemId()).getPurchasePrice())
|
|
|
94 |
#if($accessoriesDeals && $cartItem.getItemType() =="NON_SERIALIZED")
|
| 24052 |
amit.gupta |
95 |
#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPurchasePrice()(DP) - $mopPriceMap.get($cartItem.getItemId()).getPrice()(MOP) - $mrp")
|
| 23821 |
amit.gupta |
96 |
#end
|
| 22219 |
ashik.ali |
97 |
#if($cartItem.getQuantity() == 1)
|
|
|
98 |
<tr>
|
|
|
99 |
<td>$cartItem.getDisplayName()</td>
|
|
|
100 |
<td class = "table-align-center">1</td>
|
|
|
101 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| 22642 |
amit.gupta |
102 |
<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>
|
|
|
103 |
<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 |
104 |
#else
|
| 22642 |
amit.gupta |
105 |
<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>
|
|
|
106 |
<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 |
107 |
#end
|
| 22642 |
amit.gupta |
108 |
<td class = "table-align-center">
|
| 23821 |
amit.gupta |
109 |
<input type="number" class="unitPrice form-control input-sm" name="unitPrice" id = "unitPrice"
|
| 24052 |
amit.gupta |
110 |
quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" dp="$dp"
|
|
|
111 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()"
|
|
|
112 |
mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()"
|
|
|
113 |
placeholder="$placeHolder">
|
| 22642 |
amit.gupta |
114 |
</td>
|
| 22660 |
ashik.ali |
115 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
116 |
<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 |
117 |
#else
|
| 22642 |
amit.gupta |
118 |
<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 |
119 |
#end
|
| 23419 |
ashik.ali |
120 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice form-control input-sm" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
|
|
121 |
</tr>
|
| 22574 |
ashik.ali |
122 |
#else
|
| 22245 |
ashik.ali |
123 |
#if($cartItem.getItemType() =="SERIALIZED")
|
|
|
124 |
#set($start = 1)
|
|
|
125 |
#set($end = $cartItem.getQuantity())
|
|
|
126 |
#set($range = [$start..$end])
|
|
|
127 |
|
|
|
128 |
#foreach ($index in $range)
|
|
|
129 |
<tr>
|
|
|
130 |
<td>$cartItem.getDisplayName()</td>
|
|
|
131 |
<td class = "table-align-center">1</td>
|
| 22642 |
amit.gupta |
132 |
<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>
|
|
|
133 |
<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>
|
| 23821 |
amit.gupta |
134 |
<td class = "table-align-center"><input type="number" class="unitPrice form-control input-sm" name="unitPrice" quantity="1" itemId="$cartItem.getItemId()"
|
|
|
135 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" dp="$dp" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder"></td>
|
| 22660 |
ashik.ali |
136 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
137 |
<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 |
138 |
#else
|
| 22642 |
amit.gupta |
139 |
<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 |
140 |
#end
|
| 22674 |
amit.gupta |
141 |
<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 |
142 |
</tr>
|
|
|
143 |
#end
|
|
|
144 |
#else
|
|
|
145 |
<td>$cartItem.getDisplayName()</td>
|
|
|
146 |
<td class = "table-align-center">$cartItem.getQuantity()</td>
|
| 22642 |
amit.gupta |
147 |
<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>
|
|
|
148 |
<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>
|
| 23821 |
amit.gupta |
149 |
<td class = "table-align-center"><input type="number" class="unitPrice input-sm" dp="$dp" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"
|
|
|
150 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder"></td>
|
| 22660 |
ashik.ali |
151 |
#if($mopPriceMap.get($cartItem.getItemId()).isMop() && $mopPriceMap.get($cartItem.getItemId()).getMaxDiscountAmount() > 0)
|
| 22642 |
amit.gupta |
152 |
<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 |
153 |
#else
|
| 22642 |
amit.gupta |
154 |
<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 |
155 |
#end
|
| 22642 |
amit.gupta |
156 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22219 |
ashik.ali |
157 |
#end
|
|
|
158 |
#end
|
|
|
159 |
#end
|
|
|
160 |
</table>
|
| 21987 |
kshitij.so |
161 |
</div>
|
| 22219 |
ashik.ali |
162 |
</div>
|
|
|
163 |
|
| 21987 |
kshitij.so |
164 |
</div>
|
|
|
165 |
#end
|
| 22642 |
amit.gupta |
166 |
<div id="customer-details" style="background:white;background-color:white;padding:10px;">
|
| 22643 |
amit.gupta |
167 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Customer Information</h4>
|
| 22245 |
ashik.ali |
168 |
<div>
|
|
|
169 |
<div class = "row">
|
|
|
170 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
171 |
<input placeholder="First Name" id="firstName" name="firstName" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
172 |
</div>
|
|
|
173 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
174 |
<input placeholder="Last Name" id="lastName" name="lastName" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
175 |
</div>
|
|
|
176 |
<div class="col-lg-3 form-group">
|
| 22644 |
amit.gupta |
177 |
<input placeholder="Email*" id="email" name="email" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
178 |
</div>
|
|
|
179 |
<div class="col-lg-3 form-group">
|
| 22860 |
ashik.ali |
180 |
<input placeholder = "Phone Number*" id="phone" addressId="" name="phone" type="text" value="" class="form-control phone input-sm">
|
| 22245 |
ashik.ali |
181 |
</div>
|
|
|
182 |
<div class="col-lg-2 form-group">
|
| 23189 |
ashik.ali |
183 |
<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="text" value="" class="">
|
| 22245 |
ashik.ali |
184 |
</div>
|
|
|
185 |
|
|
|
186 |
</div>
|
|
|
187 |
<div class = "row">
|
| 23369 |
ashik.ali |
188 |
<div class="col-lg-3 form-group">
|
|
|
189 |
<input placeholder="GST Number" id="gstNumber" name="gstNumber" type="text" value="" class="form-control input-sm">
|
|
|
190 |
</div>
|
|
|
191 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
192 |
<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
193 |
</div>
|
| 23369 |
ashik.ali |
194 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
195 |
<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
196 |
</div>
|
| 23369 |
ashik.ali |
197 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
198 |
<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
199 |
</div>
|
|
|
200 |
</div>
|
|
|
201 |
<div class = "row">
|
|
|
202 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
203 |
<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
204 |
</div>
|
|
|
205 |
<div class="col-lg-2 form-group">
|
| 22642 |
amit.gupta |
206 |
<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
207 |
</div>
|
|
|
208 |
<div class="col-lg-3 form-group">
|
| 22642 |
amit.gupta |
209 |
<input placeholder="City" id="city" name="city" type="text" value="" class="form-control input-sm">
|
| 22245 |
ashik.ali |
210 |
</div>
|
|
|
211 |
<div class="col-lg-4 form-group">
|
| 22860 |
ashik.ali |
212 |
<select class="form-control input-sm" id = "state" name = "state" placeholder="State">
|
| 23299 |
ashik.ali |
213 |
<option value="" disabled selected>State</option>
|
|
|
214 |
#foreach($stateName in $stateNames)
|
|
|
215 |
#if($retailerStateName == $stateName)
|
|
|
216 |
<option value="$stateName" selected>$stateName</option>
|
|
|
217 |
#else
|
|
|
218 |
<option value="$stateName">$stateName</option>
|
|
|
219 |
#end
|
|
|
220 |
#end
|
|
|
221 |
|
| 22245 |
ashik.ali |
222 |
</select>
|
|
|
223 |
</div>
|
|
|
224 |
</div>
|
| 23419 |
ashik.ali |
225 |
<div id="prebooking-order-details">
|
|
|
226 |
</div>
|
| 22245 |
ashik.ali |
227 |
</div>
|
| 21987 |
kshitij.so |
228 |
<div id="payment-details" style="background:white;background-color:white;">
|
|
|
229 |
<div class="row">
|
|
|
230 |
<div class="col-lg-6 right">
|
|
|
231 |
<div class="col-lg-6">
|
|
|
232 |
<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
|
|
|
233 |
</div>
|
|
|
234 |
<div class="col-lg-6">
|
| 22642 |
amit.gupta |
235 |
<input type="number" class="netPayableAmount form-control input-sm" name="" value="0" readonly>
|
| 21987 |
kshitij.so |
236 |
</div>
|
|
|
237 |
</div>
|
|
|
238 |
</div>
|
| 23434 |
ashik.ali |
239 |
<div class="row">
|
|
|
240 |
<div class="col-lg-6 right">
|
|
|
241 |
<div class="col-lg-6">
|
|
|
242 |
<h4 class="grnProductInfo modelHeaderCustom right">Total Advance Amount :</h4>
|
|
|
243 |
</div>
|
|
|
244 |
<div class="col-lg-6">
|
|
|
245 |
<input type="number" class="totalAdvanceAmount form-control input-sm" name="" value="0" readonly>
|
|
|
246 |
</div>
|
|
|
247 |
</div>
|
|
|
248 |
</div>
|
| 21987 |
kshitij.so |
249 |
<p></p>
|
| 23367 |
ashik.ali |
250 |
<div id="payment-option-id-amount-container" paymentOptionSize = $paymentOptions.size()>
|
|
|
251 |
#set($a = 0)
|
|
|
252 |
#set($b = $paymentOptions.size() - 1)
|
|
|
253 |
#set($range = [$a..$b])
|
|
|
254 |
|
|
|
255 |
#foreach($index in $range)
|
|
|
256 |
#set($paymentOption = $paymentOptions[$index])
|
|
|
257 |
<div class="row">
|
|
|
258 |
<div class="col-lg-6 right">
|
|
|
259 |
<div class="col-lg-6">
|
|
|
260 |
<h4 class="grnProductInfo modelHeaderCustom right">$paymentOption.getName() :</h4>
|
|
|
261 |
</div>
|
|
|
262 |
<div class="col-lg-6">
|
|
|
263 |
<input type="number" id="paymentOptionIdAmount${index}" name="paymentOptionIdAmount${index}" class="form-control paymentOptionAmount amount input-sm" value="0" paymentOptionId="$paymentOption.getId()">
|
|
|
264 |
</div>
|
| 23353 |
ashik.ali |
265 |
</div>
|
| 21987 |
kshitij.so |
266 |
</div>
|
| 23367 |
ashik.ali |
267 |
#end
|
|
|
268 |
</div>
|
| 21987 |
kshitij.so |
269 |
</div>
|
|
|
270 |
<div id="create-order" style="padding:10px;">
|
|
|
271 |
<div class="row">
|
|
|
272 |
<div class="col-xs-3" style="float:right;">
|
|
|
273 |
<button class="btn btn-primary order-checkout" type="submit" style="width:100%;border-radius:0px;">Create Order</button>
|
|
|
274 |
</div>
|
|
|
275 |
</div>
|
|
|
276 |
</div>
|
|
|
277 |
</form>
|
| 23347 |
ashik.ali |
278 |
</section>
|
| 24072 |
amit.gupta |
279 |
<script type="text/javascript" src="resources/js/create-order.js?v=${version}"></script>
|