| Line 35... |
Line 35... |
| 35 |
}
|
35 |
}
|
| 36 |
.form-control{
|
36 |
.form-control{
|
| 37 |
color:black;
|
37 |
color:black;
|
| 38 |
text-transform:uppercase;
|
38 |
text-transform:uppercase;
|
| 39 |
}
|
39 |
}
|
| - |
|
40 |
.table-align-center{
|
| - |
|
41 |
text-align:center;
|
| 40 |
}
|
42 |
}
|
| 41 |
</style>
|
43 |
</style>
|
| 42 |
<section class="wrapper">
|
44 |
<section class="wrapper">
|
| 43 |
<div class="row">
|
45 |
<div class="row">
|
| 44 |
<div class="col-lg-12">
|
46 |
<div class="col-lg-12">
|
| Line 161... |
Line 163... |
| 161 |
<div class="card row"
|
163 |
<div class="card row"
|
| 162 |
<p>Your Cart is Empty.</p>
|
164 |
<p>Your Cart is Empty.</p>
|
| 163 |
</div>
|
165 |
</div>
|
| 164 |
#else
|
166 |
#else
|
| 165 |
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Product Information</h4>
|
167 |
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Product Information</h4>
|
| 166 |
#foreach ($cartItem in $cartObj)
|
168 |
<div class = "row">
|
| 167 |
<div class="row">
|
169 |
<div class="table-responsive">
|
| 168 |
<div class="col-sm-4">
|
170 |
<table class="table">
|
| - |
|
171 |
<tr>
|
| - |
|
172 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Description</h4></td>
|
| - |
|
173 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Quantity</h4></dt>
|
| - |
|
174 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
| - |
|
175 |
<td><h4 class="grnProductInfo modelHeaderCustom">Insurance Amount</h4></td>
|
| - |
|
176 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
| 169 |
<h4 class="grnProductInfo modelHeaderCustom">Product Details : <span>$cartItem.getDisplayName()</span></h4>
|
177 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
| 170 |
</div>
|
178 |
</tr>
|
| 171 |
<div class="col-sm-2">
|
179 |
#foreach ($cartItem in $cartObj)
|
| 172 |
<h4 class="grnProductInfo modelHeaderCustom">Quantity : <span>$cartItem.getQuantity()</span></h4>
|
180 |
#if($cartItem.getQuantity() == 1)
|
| 173 |
</div>
|
181 |
<tr>
|
| - |
|
182 |
<td>$cartItem.getDisplayName()</td>
|
| - |
|
183 |
<td class = "table-align-center">1</td>
|
| - |
|
184 |
#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>
|
| 174 |
<div class="col-sm-3">
|
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>
|
| - |
|
187 |
#else
|
| - |
|
188 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" 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>
|
| - |
|
190 |
#end
|
| 175 |
<h4 class="grnProductInfo modelHeaderCustom">Unit Price : <input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"></h4>
|
191 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"></td>
|
| - |
|
192 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 176 |
</div>
|
193 |
</tr>
|
| - |
|
194 |
#else
|
| - |
|
195 |
#set($start = 1)
|
| - |
|
196 |
#set($end = $cartItem.getQuantity())
|
| - |
|
197 |
#set($range = [$start..$end])
|
| - |
|
198 |
#foreach ($index in $range)
|
| - |
|
199 |
<tr>
|
| - |
|
200 |
<td>$cartItem.getDisplayName()</td>
|
| - |
|
201 |
<td class = "table-align-center">1</td>
|
| - |
|
202 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| - |
|
203 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" class="serialNumber form-control"></div></td>
|
| 177 |
<div class="col-sm-3">
|
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>
|
| - |
|
205 |
#else
|
| - |
|
206 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" 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>
|
| - |
|
208 |
#end
|
| - |
|
209 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()"></td>
|
| 178 |
<h4 class="grnProductInfo modelHeaderCustom">Total Price : <input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></h4>
|
210 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| - |
|
211 |
</tr>
|
| - |
|
212 |
#end
|
| - |
|
213 |
#end
|
| - |
|
214 |
#end
|
| 179 |
</div>
|
215 |
</table>
|
| 180 |
</div>
|
216 |
</div>
|
| 181 |
#if($cartItem.getItemType() =="SERIALIZED")
|
- |
|
| 182 |
<div class="row">
|
- |
|
| 183 |
<div class="col-sm-4">
|
- |
|
| 184 |
<h4 class="modal-title">Enter Serial Numbers</h4>
|
- |
|
| 185 |
</div>
|
- |
|
| 186 |
</div>
|
217 |
</div>
|
| 187 |
<div class="row">
|
- |
|
| 188 |
#foreach ($number in [1..$cartItem.getQuantity()])
|
- |
|
| 189 |
<div class="col-sm-3"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" class="serialNumber form-control"></div></div>
|
- |
|
| 190 |
#end
|
- |
|
| 191 |
</div>
|
- |
|
| 192 |
#end
|
- |
|
| 193 |
<hr>
|
- |
|
| 194 |
#end
|
218 |
|
| 195 |
</div>
|
219 |
</div>
|
| 196 |
#end
|
220 |
#end
|
| 197 |
|
221 |
|
| 198 |
<div id="payment-details" style="background:white;background-color:white;">
|
222 |
<div id="payment-details" style="background:white;background-color:white;">
|
| 199 |
<div class="row">
|
223 |
<div class="row">
|