| Line 39... |
Line 39... |
| 39 |
}
|
39 |
}
|
| 40 |
.table-align-center{
|
40 |
.table-align-center{
|
| 41 |
text-align:center;
|
41 |
text-align:center;
|
| 42 |
}
|
42 |
}
|
| 43 |
</style>
|
43 |
</style>
|
| - |
|
44 |
|
| - |
|
45 |
<script type="text/javascript">
|
| - |
|
46 |
var cartItemIndex = 0;
|
| - |
|
47 |
</script>
|
| - |
|
48 |
|
| 44 |
<section class="wrapper">
|
49 |
<section class="wrapper">
|
| 45 |
<div class="row">
|
50 |
<div class="row">
|
| 46 |
<div class="col-lg-12">
|
51 |
<div class="col-lg-12">
|
| 47 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
52 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
| 48 |
<ol class="breadcrumb">
|
53 |
<ol class="breadcrumb">
|
| Line 50... |
Line 55... |
| 50 |
<li><i class="icon_table"></i>ORDER</li>
|
55 |
<li><i class="icon_table"></i>ORDER</li>
|
| 51 |
</ol>
|
56 |
</ol>
|
| 52 |
</div>
|
57 |
</div>
|
| 53 |
</div>
|
58 |
</div>
|
| 54 |
<form id="cd">
|
59 |
<form id="cd">
|
| 55 |
<div id="customer-details" style="background:white;background-color:white;padding:1%;">
|
- |
|
| 56 |
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Customer Information</h4>
|
- |
|
| 57 |
<div class="row">
|
- |
|
| 58 |
<div class="col-lg-6">
|
- |
|
| 59 |
<div class="row form-group">
|
- |
|
| 60 |
<label class="control-label col-lg-6">Customer Name</label>
|
- |
|
| 61 |
<div class="col-lg-6">
|
- |
|
| 62 |
<input id="name" name="name" type="text" value="" class="form-control">
|
- |
|
| 63 |
</div>
|
- |
|
| 64 |
</div>
|
- |
|
| 65 |
<div class="row form-group">
|
- |
|
| 66 |
<label class="control-label col-lg-6">Phone</label>
|
- |
|
| 67 |
<div class="col-lg-6">
|
- |
|
| 68 |
<input id="phone" name="phone" type="text" value="" class="form-control">
|
- |
|
| 69 |
</div>
|
- |
|
| 70 |
</div>
|
- |
|
| 71 |
<div class="row form-group">
|
- |
|
| 72 |
<label class="control-label col-lg-6">Email</label>
|
- |
|
| 73 |
<div class="col-lg-6">
|
- |
|
| 74 |
<input id="email" name="email" type="text" value="" class="form-control">
|
- |
|
| 75 |
</div>
|
- |
|
| 76 |
</div>
|
- |
|
| 77 |
<div class="row form-group">
|
- |
|
| 78 |
<label class="control-label col-lg-6">Alternate Phone Number</label>
|
- |
|
| 79 |
<div class="col-lg-6">
|
- |
|
| 80 |
<input id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control">
|
- |
|
| 81 |
</div>
|
- |
|
| 82 |
</div>
|
- |
|
| 83 |
<div class="row form-group">
|
- |
|
| 84 |
<label class="control-label col-lg-6">Address Line1</label>
|
- |
|
| 85 |
<div class="col-lg-6">
|
- |
|
| 86 |
<input id="line1" name="line1" type="text" size="50" value="" class="form-control">
|
- |
|
| 87 |
</div>
|
- |
|
| 88 |
</div>
|
- |
|
| 89 |
</div>
|
- |
|
| 90 |
<div class="col-lg-6">
|
- |
|
| 91 |
<div class="row form-group">
|
- |
|
| 92 |
<label class="control-label col-lg-6">Address Line2</label>
|
- |
|
| 93 |
<div class="col-lg-6">
|
- |
|
| 94 |
<input id="line2" name="line2" type="text" value="" class="form-control">
|
- |
|
| 95 |
</div>
|
- |
|
| 96 |
</div>
|
- |
|
| 97 |
<div class="row form-group">
|
- |
|
| 98 |
<label class="control-label col-lg-6">Landmark</label>
|
- |
|
| 99 |
<div class="col-lg-6">
|
- |
|
| 100 |
<input id="landmark" name="landmark" type="text" value="" class="form-control">
|
- |
|
| 101 |
</div>
|
- |
|
| 102 |
</div>
|
- |
|
| 103 |
<div class="row form-group">
|
- |
|
| 104 |
<label class="control-label col-lg-6">City</label>
|
- |
|
| 105 |
<div class="col-lg-6">
|
- |
|
| 106 |
<input id="city" name="city" type="text" value="" class="form-control">
|
- |
|
| 107 |
</div>
|
- |
|
| 108 |
</div>
|
- |
|
| 109 |
<div class="row form-group">
|
- |
|
| 110 |
<label class="control-label col-lg-6">State</label>
|
- |
|
| 111 |
<div class="col-lg-6">
|
- |
|
| 112 |
<select class="form-control" name = "state" placeholder="State">
|
- |
|
| 113 |
<option value="Andaman and Nicobar Islands">Andaman and Nicobar Islands</option>
|
- |
|
| 114 |
<option value="Andhra Pradesh">Andhra Pradesh</option>
|
- |
|
| 115 |
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
|
- |
|
| 116 |
<option value="Assam">Assam</option>
|
- |
|
| 117 |
<option value="Bihar">Bihar</option>
|
- |
|
| 118 |
<option value="Chandigarh">Chandigarh</option>
|
- |
|
| 119 |
<option value="Chhattisgarh">Chhattisgarh</option>
|
- |
|
| 120 |
<option value="Dadra and Nagar Haveli">Dadra and Nagar Haveli</option>
|
- |
|
| 121 |
<option value="Daman and Diu">Daman and Diu</option>
|
- |
|
| 122 |
<option value="Delhi">Delhi</option>
|
- |
|
| 123 |
<option value="Goa">Goa</option>
|
- |
|
| 124 |
<option value="Gujarat">Gujarat</option>
|
- |
|
| 125 |
<option value="Haryana">Haryana</option>
|
- |
|
| 126 |
<option value="Himachal Pradesh">Himachal Pradesh</option>
|
- |
|
| 127 |
<option value="Jammu and Kashmir">Jammu and Kashmir</option>
|
- |
|
| 128 |
<option value="Jharkhand">Jharkhand</option>
|
- |
|
| 129 |
<option value="Karnataka">Karnataka</option>
|
- |
|
| 130 |
<option value="Kerala">Kerala</option>
|
- |
|
| 131 |
<option value="Lakshadweep">Lakshadweep</option>
|
- |
|
| 132 |
<option value="Madhya Pradesh">Madhya Pradesh</option>
|
- |
|
| 133 |
<option value="Maharashtra">Maharashtra</option>
|
- |
|
| 134 |
<option value="Manipur">Manipur</option>
|
- |
|
| 135 |
<option value="Meghalaya">Meghalaya</option>
|
- |
|
| 136 |
<option value="Mizoram">Mizoram</option>
|
- |
|
| 137 |
<option value="Nagaland">Nagaland</option>
|
- |
|
| 138 |
<option value="Orissa">Orissa</option>
|
- |
|
| 139 |
<option value="Pondicherry">Pondicherry</option>
|
- |
|
| 140 |
<option value="Punjab">Punjab</option>
|
- |
|
| 141 |
<option value="Rajasthan">Rajasthan</option>
|
- |
|
| 142 |
<option value="Sikkim">Sikkim</option>
|
- |
|
| 143 |
<option value="Tamil Nadu">Tamil Nadu</option>
|
- |
|
| 144 |
<option value="Tripura">Tripura</option>
|
- |
|
| 145 |
<option value="Telangana">Telangana</option>
|
- |
|
| 146 |
<option value="Uttaranchal">Uttaranchal</option>
|
- |
|
| 147 |
<option value="Uttar Pradesh">Uttar Pradesh</option>
|
- |
|
| 148 |
<option value="West Bengal">West Bengal</option>
|
- |
|
| 149 |
</select>
|
- |
|
| 150 |
</div>
|
- |
|
| 151 |
</div>
|
- |
|
| 152 |
<div class="row form-group">
|
- |
|
| 153 |
<label class="control-label col-lg-6">Pincode</label>
|
- |
|
| 154 |
<div class="col-lg-6">
|
- |
|
| 155 |
<input id="pincode" name="pincode" type="text" value="" class="form-control">
|
- |
|
| 156 |
</div>
|
- |
|
| 157 |
</div>
|
- |
|
| 158 |
</div>
|
- |
|
| 159 |
</div>
|
- |
|
| 160 |
</div>
|
60 |
|
| 161 |
<div id="order-details" style="background:white;background-color:white;">
|
61 |
<div id="order-details" style="background:white;background-color:white;">
|
| 162 |
#if($cartObj.size()==0)
|
62 |
#if($cartObj.size()==0)
|
| 163 |
<div class="card row"
|
63 |
<div class="card row"
|
| 164 |
<p>Your Cart is Empty.</p>
|
64 |
<p>Your Cart is Empty.</p>
|
| 165 |
</div>
|
65 |
</div>
|
| Line 174... |
Line 74... |
| 174 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
74 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
| 175 |
<td><h4 class="grnProductInfo modelHeaderCustom">Insurance Amount</h4></td>
|
75 |
<td><h4 class="grnProductInfo modelHeaderCustom">Insurance Amount</h4></td>
|
| 176 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
76 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
| 177 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
77 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
| 178 |
</tr>
|
78 |
</tr>
|
| - |
|
79 |
|
| 179 |
#foreach ($cartItem in $cartObj)
|
80 |
#foreach ($cartItem in $cartObj)
|
| 180 |
#if($cartItem.getQuantity() == 1)
|
81 |
#if($cartItem.getQuantity() == 1)
|
| 181 |
<tr>
|
82 |
<tr>
|
| 182 |
<td>$cartItem.getDisplayName()</td>
|
83 |
<td>$cartItem.getDisplayName()</td>
|
| 183 |
<td class = "table-align-center">1</td>
|
84 |
<td class = "table-align-center">1</td>
|
| 184 |
#if($cartItem.getItemType() =="SERIALIZED")
|
85 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| 185 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" class="serialNumber form-control"></div></td>
|
86 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber form-control"></div></td>
|
| 186 |
<td class = "table-align-center"><div class="input-group"><input type="number" placeholder="$itemIdInsurancePrice.get($cartItem.getItemId()).getDealerPrice() - $itemIdInsurancePrice.get($cartItem.getItemId()).getSellingPrice()" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
|
87 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" id="insuranceAmount" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
|
| 187 |
#else
|
88 |
#else
|
| 188 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" class="serialNumber form-control" readonly></div></td>
|
89 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control" readonly></div></td>
|
| 189 |
<td class = "table-align-center"><div class="input-group"><input type="number" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
|
90 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
|
| 190 |
#end
|
91 |
#end
|
| 191 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"></td>
|
92 |
<td class = "table-align-center"><input type="number" class="unitPrice form-control" name="unitPrice" id = "unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" placeholder="$mopPriceMap.get($cartItem.getItemId()) - MRP"></td>
|
| 192 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
93 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 193 |
</tr>
|
94 |
</tr>
|
| 194 |
#else
|
95 |
#else
|
| - |
|
96 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| 195 |
#set($start = 1)
|
97 |
#set($start = 1)
|
| 196 |
#set($end = $cartItem.getQuantity())
|
98 |
#set($end = $cartItem.getQuantity())
|
| 197 |
#set($range = [$start..$end])
|
99 |
#set($range = [$start..$end])
|
| - |
|
100 |
|
| 198 |
#foreach ($index in $range)
|
101 |
#foreach ($index in $range)
|
| 199 |
<tr>
|
102 |
<tr>
|
| 200 |
<td>$cartItem.getDisplayName()</td>
|
103 |
<td>$cartItem.getDisplayName()</td>
|
| 201 |
<td class = "table-align-center">1</td>
|
104 |
<td class = "table-align-center">1</td>
|
| 202 |
#if($cartItem.getItemType() =="SERIALIZED")
|
105 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber form-control"></div></td>
|
| 203 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" class="serialNumber form-control"></div></td>
|
106 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
|
| 204 |
<td class = "table-align-center"><div class="input-group"><input type="number" placeholder="$itemIdInsurancePrice.get($cartItem.getItemId()).getDealerPrice() - $itemIdInsurancePrice.get($cartItem.getItemId()).getSellingPrice()" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
|
107 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="1" value="0" itemId="$cartItem.getItemId()"></td>
|
| - |
|
108 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| - |
|
109 |
</tr>
|
| - |
|
110 |
#end
|
| 205 |
#else
|
111 |
#else
|
| - |
|
112 |
<td>$cartItem.getDisplayName()</td>
|
| - |
|
113 |
<td class = "table-align-center">$cartItem.getQuantity()</td>
|
| 206 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" class="serialNumber form-control" readonly></div></td>
|
114 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control" readonly></div></td>
|
| 207 |
<td class = "table-align-center"><div class="input-group"><input type="number" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
|
115 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
|
| 208 |
#end
|
- |
|
| 209 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"></td>
|
116 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"></td>
|
| 210 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
117 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 211 |
</tr>
|
- |
|
| 212 |
#end
|
118 |
#end
|
| 213 |
#end
|
119 |
#end
|
| 214 |
#end
|
120 |
#end
|
| 215 |
</table>
|
121 |
</table>
|
| 216 |
</div>
|
122 |
</div>
|
| 217 |
</div>
|
123 |
</div>
|
| 218 |
|
124 |
|
| 219 |
</div>
|
125 |
</div>
|
| 220 |
#end
|
126 |
#end
|
| - |
|
127 |
<div id="customer-details" style="background:white;background-color:white;padding:1%;">
|
| - |
|
128 |
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Customer Information</h4>
|
| - |
|
129 |
<div>
|
| - |
|
130 |
<div class = "row">
|
| - |
|
131 |
<div class="col-lg-2 form-group">
|
| - |
|
132 |
<input placeholder="First Name" id="name" name="firstName" type="text" value="" class="form-control">
|
| - |
|
133 |
</div>
|
| - |
|
134 |
<div class="col-lg-2 form-group">
|
| - |
|
135 |
<input placeholder="Last Name" id="name" name="lastName" type="text" value="" class="form-control">
|
| - |
|
136 |
</div>
|
| - |
|
137 |
<div class="col-lg-3 form-group">
|
| - |
|
138 |
<input placeholder="Email" id="email" name="email" type="text" value="" class="form-control">
|
| - |
|
139 |
</div>
|
| - |
|
140 |
<div class="col-lg-3 form-group">
|
| - |
|
141 |
<input placeholder = "Phone Number" id="phone" name="phone" type="text" value="" class="form-control">
|
| - |
|
142 |
</div>
|
| - |
|
143 |
<div class="col-lg-2 form-group">
|
| - |
|
144 |
<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="date" value="" class="form-control">
|
| - |
|
145 |
</div>
|
| 221 |
|
146 |
|
| - |
|
147 |
</div>
|
| - |
|
148 |
<div class = "row">
|
| - |
|
149 |
<div class="col-lg-4 form-group">
|
| - |
|
150 |
<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control">
|
| - |
|
151 |
</div>
|
| - |
|
152 |
<div class="col-lg-4 form-group">
|
| - |
|
153 |
<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control">
|
| - |
|
154 |
</div>
|
| - |
|
155 |
<div class="col-lg-4 form-group">
|
| - |
|
156 |
<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control">
|
| - |
|
157 |
</div>
|
| - |
|
158 |
</div>
|
| - |
|
159 |
<div class = "row">
|
| - |
|
160 |
<div class="col-lg-3 form-group">
|
| - |
|
161 |
<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control">
|
| - |
|
162 |
</div>
|
| - |
|
163 |
<div class="col-lg-2 form-group">
|
| - |
|
164 |
<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control">
|
| - |
|
165 |
</div>
|
| - |
|
166 |
<div class="col-lg-3 form-group">
|
| - |
|
167 |
<input placeholder="City" id="city" name="city" type="text" value="" class="form-control">
|
| - |
|
168 |
</div>
|
| - |
|
169 |
<div class="col-lg-4 form-group">
|
| - |
|
170 |
<select class="form-control" name = "state" placeholder="State">
|
| - |
|
171 |
<option value="Andaman and Nicobar Islands">Andaman and Nicobar Islands</option>
|
| - |
|
172 |
<option value="Andhra Pradesh">Andhra Pradesh</option>
|
| - |
|
173 |
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
|
| - |
|
174 |
<option value="Assam">Assam</option>
|
| - |
|
175 |
<option value="Bihar">Bihar</option>
|
| - |
|
176 |
<option value="Chandigarh">Chandigarh</option>
|
| - |
|
177 |
<option value="Chhattisgarh">Chhattisgarh</option>
|
| - |
|
178 |
<option value="Dadra and Nagar Haveli">Dadra and Nagar Haveli</option>
|
| - |
|
179 |
<option value="Daman and Diu">Daman and Diu</option>
|
| - |
|
180 |
<option value="Delhi">Delhi</option>
|
| - |
|
181 |
<option value="Goa">Goa</option>
|
| - |
|
182 |
<option value="Gujarat">Gujarat</option>
|
| - |
|
183 |
<option value="Haryana">Haryana</option>
|
| - |
|
184 |
<option value="Himachal Pradesh">Himachal Pradesh</option>
|
| - |
|
185 |
<option value="Jammu and Kashmir">Jammu and Kashmir</option>
|
| - |
|
186 |
<option value="Jharkhand">Jharkhand</option>
|
| - |
|
187 |
<option value="Karnataka">Karnataka</option>
|
| - |
|
188 |
<option value="Kerala">Kerala</option>
|
| - |
|
189 |
<option value="Lakshadweep">Lakshadweep</option>
|
| - |
|
190 |
<option value="Madhya Pradesh">Madhya Pradesh</option>
|
| - |
|
191 |
<option value="Maharashtra">Maharashtra</option>
|
| - |
|
192 |
<option value="Manipur">Manipur</option>
|
| - |
|
193 |
<option value="Meghalaya">Meghalaya</option>
|
| - |
|
194 |
<option value="Mizoram">Mizoram</option>
|
| - |
|
195 |
<option value="Nagaland">Nagaland</option>
|
| - |
|
196 |
<option value="Orissa">Orissa</option>
|
| - |
|
197 |
<option value="Pondicherry">Pondicherry</option>
|
| - |
|
198 |
<option value="Punjab">Punjab</option>
|
| - |
|
199 |
<option value="Rajasthan">Rajasthan</option>
|
| - |
|
200 |
<option value="Sikkim">Sikkim</option>
|
| - |
|
201 |
<option value="Tamil Nadu">Tamil Nadu</option>
|
| - |
|
202 |
<option value="Tripura">Tripura</option>
|
| - |
|
203 |
<option value="Telangana">Telangana</option>
|
| - |
|
204 |
<option value="Uttaranchal">Uttaranchal</option>
|
| - |
|
205 |
<option value="Uttar Pradesh">Uttar Pradesh</option>
|
| - |
|
206 |
<option value="West Bengal">West Bengal</option>
|
| - |
|
207 |
</select>
|
| - |
|
208 |
</div>
|
| - |
|
209 |
</div>
|
| - |
|
210 |
</div>
|
| 222 |
<div id="payment-details" style="background:white;background-color:white;">
|
211 |
<div id="payment-details" style="background:white;background-color:white;">
|
| 223 |
<div class="row">
|
212 |
<div class="row">
|
| 224 |
<div class="col-lg-6 right">
|
213 |
<div class="col-lg-6 right">
|
| 225 |
<div class="col-lg-6">
|
214 |
<div class="col-lg-6">
|
| 226 |
<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
|
215 |
<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
|
| Line 272... |
Line 261... |
| 272 |
</div>
|
261 |
</div>
|
| 273 |
</div>
|
262 |
</div>
|
| 274 |
</div>
|
263 |
</div>
|
| 275 |
</form>
|
264 |
</form>
|
| 276 |
</section>
|
265 |
</section>
|
| 277 |
<script>
|
- |
|
| 278 |
$().ready(function() {
|
- |
|
| 279 |
$("form#cd input").each(function(){
|
- |
|
| 280 |
$(this).attr('autocomplete', 'off');
|
- |
|
| 281 |
});
|
- |
|
| 282 |
});
|
- |
|
| 283 |
</script>
|
- |
|
| 284 |
<script>
|
- |
|
| 285 |
$().ready(function() {
|
- |
|
| 286 |
// validate the comment form when it is submitted
|
- |
|
| 287 |
$('#cd').validate({
|
- |
|
| 288 |
rules:{
|
- |
|
| 289 |
name:{
|
- |
|
| 290 |
required:true
|
- |
|
| 291 |
},
|
- |
|
| 292 |
email:{
|
- |
|
| 293 |
required:true,
|
- |
|
| 294 |
email:true
|
- |
|
| 295 |
|
- |
|
| 296 |
},
|
- |
|
| 297 |
line1:{
|
- |
|
| 298 |
required:true
|
- |
|
| 299 |
},
|
- |
|
| 300 |
state:{
|
- |
|
| 301 |
required:true
|
- |
|
| 302 |
},
|
- |
|
| 303 |
city:{
|
- |
|
| 304 |
required:true
|
- |
|
| 305 |
},
|
- |
|
| 306 |
pincode:{
|
- |
|
| 307 |
required:true,
|
- |
|
| 308 |
digits:true,
|
- |
|
| 309 |
minlength: 6,
|
- |
|
| 310 |
maxlength: 6,
|
- |
|
| 311 |
},
|
- |
|
| 312 |
phone:{
|
- |
|
| 313 |
required:true,
|
- |
|
| 314 |
minlength:10,
|
- |
|
| 315 |
maxlength:10,
|
- |
|
| 316 |
digits:true
|
- |
|
| 317 |
},
|
- |
|
| 318 |
},
|
- |
|
| 319 |
messages:{
|
- |
|
| 320 |
name:{
|
- |
|
| 321 |
required:"Please enter the name"
|
- |
|
| 322 |
},
|
- |
|
| 323 |
line1:{
|
- |
|
| 324 |
required:"Please enter the address"
|
- |
|
| 325 |
},
|
- |
|
| 326 |
state:{
|
- |
|
| 327 |
required: "Please select a state"
|
- |
|
| 328 |
},
|
- |
|
| 329 |
city:{
|
- |
|
| 330 |
required: "Please enter the city"
|
- |
|
| 331 |
},
|
- |
|
| 332 |
email:{
|
- |
|
| 333 |
require: "Please enter a valid email address"
|
- |
|
| 334 |
},
|
- |
|
| 335 |
pincode:{
|
- |
|
| 336 |
required: "Please enter the pincode",
|
- |
|
| 337 |
digits:"Please enter a valid pincode"
|
- |
|
| 338 |
},
|
- |
|
| 339 |
phone:{
|
- |
|
| 340 |
required: "Please enter the phone number",
|
- |
|
| 341 |
digits:"Please enter a valid number",
|
- |
|
| 342 |
minlength:"Number should be of 10 digits"
|
- |
|
| 343 |
}
|
- |
|
| 344 |
},
|
- |
|
| 345 |
submitHandler: function (form, event) {
|
- |
|
| 346 |
event.preventDefault();
|
- |
|
| 347 |
var payload = orderDetailsPayload();
|
- |
|
| 348 |
if(!validateOrderDetails()){
|
- |
|
| 349 |
alert("Please fix highlighted errors");
|
- |
|
| 350 |
return false;
|
- |
|
| 351 |
}
|
- |
|
| 352 |
$.ajax({
|
- |
|
| 353 |
type: "POST",
|
- |
|
| 354 |
url: "create-order",
|
- |
|
| 355 |
data: payload,
|
- |
|
| 356 |
contentType:'application/json',
|
- |
|
| 357 |
async: false,
|
- |
|
| 358 |
success: function (data) {
|
- |
|
| 359 |
emptyBag();
|
- |
|
| 360 |
$('#main-content').html(data);
|
- |
|
| 361 |
},
|
- |
|
| 362 |
error : function() {
|
- |
|
| 363 |
alert("OOPS!!!Failed to do changes.Try Again.",'ERROR');
|
- |
|
| 364 |
},
|
- |
|
| 365 |
cache: false,
|
- |
|
| 366 |
processData: false
|
- |
|
| 367 |
});
|
- |
|
| 368 |
return false; // required to block normal submit since you used ajax
|
- |
|
| 369 |
}
|
- |
|
| 370 |
});
|
- |
|
| 371 |
});
|
- |
|
| 372 |
</script>
|
- |
|
| 373 |
|
266 |
<script type="text/javascript" src="${rc.contextPath}/resources/js/order.js"></script>
|
| - |
|
267 |
|
| 374 |
|
268 |
|