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