Subversion Repositories SmartDukaan

Rev

Rev 26669 | Rev 26817 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26669 Rev 26810
Line 97... Line 97...
97
		<p>Your Cart is Empty.</p>	
97
		<p>Your Cart is Empty.</p>	
98
	</div>
98
	</div>
99
#else
99
#else
100
<div class = "row">
100
<div class = "row">
101
	<div class="table-responsive col-lg-8" style="background-color:white">
101
	<div class="table-responsive col-lg-8" style="background-color:white">
-
 
102
		<div class="row">
102
		<h4 class="modelHeaderCustom" style="font-size:22px;">Product Information</h4>
103
			<h4 class="modelHeaderCustom" style="font-size:22px;">Product Information</h4>
103
  		<table class="table table-condensed">
104
	  		<table id="order-items" class="table table-condensed">
104
    		<tr>
105
	    		<tr>
105
    			<th style="width:25%">Description</th>
106
	    			<th style="width:25%">Description</th>
106
    			<th style="width:10%">Quantity</th>
107
	    			<th style="width:10%">Quantity</th>
107
    			<th style="width:15%">Serial Number</th>
108
	    			<th style="width:15%">Serial Number</th>
108
    			<th style="width:12%">Unit Price</th>
109
	    			<th style="width:12%">Unit Price</th>
109
    			<th style="width:15%">Mobile Insurance</th>
110
	    			<th style="width:15%">Mobile Insurance</th>
110
    			<!--<th><h4 class="grnProductInfo modelHeaderCustom table-align-center">Discount</h4></th>-->
111
	    			<!--<th><h4 class="grnProductInfo modelHeaderCustom table-align-center">Discount</h4></th>-->
111
    			<th style="width:12%">Total Price</th>
112
	    			<th style="width:12%">Total Price</th>
112
    		</tr>
113
	    		</tr>
113
    		
114
	    		
114
    		#foreach ($cartItem in $cartItems)
115
	    		#foreach ($cartItem in $cartItems)
115
    			#set($mrp="MRP")
116
	    			#set($mrp="MRP")
116
    			#if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
117
	    			#if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
117
	    			#set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
118
		    			#set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
118
    			#end
119
	    			#end
119
    			
120
	    			
120
				#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPrice() - $mrp")
121
					#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPrice() - $mrp")
121
				#set($dp = $mopPriceMap.get($cartItem.getItemId()).getPurchasePrice())
122
					#set($dp = $mopPriceMap.get($cartItem.getItemId()).getPurchasePrice())
122
				#if($accessoriesDeals && $cartItem.getItemType() =="NON_SERIALIZED")
123
					#if($accessoriesDeals && $cartItem.getItemType() =="NON_SERIALIZED")
123
					#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPurchasePrice()(DP) - $mopPriceMap.get($cartItem.getItemId()).getPrice()(MOP) - $mrp")
124
						#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPurchasePrice()(DP) - $mopPriceMap.get($cartItem.getItemId()).getPrice()(MOP) - $mrp")
124
				#end
125
					#end
125
				#if($cartItem.getItemType() =="SERIALIZED")
126
					#if($cartItem.getItemType() =="SERIALIZED")
126
					#set($start = 1)
127
						#set($start = 1)
127
					#set($end   = $cartItem.getQuantity())
128
						#set($end   = $cartItem.getQuantity())
128
					#set($range = [$start..$end])
129
						#set($range = [$start..$end])
129
					
130
						
130
					#foreach ($index in $range)
131
						#foreach ($index in $range)
-
 
132
							<tr>
-
 
133
								<td>$cartItem.getDisplayName()</td>
-
 
134
	    						<td class = "table-align-center">1</td>
-
 
135
								<td class = "table-align-center">
-
 
136
									<input readonly type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber input-sm form-control">
-
 
137
								</td>
-
 
138
								<td class = "table-align-center">
-
 
139
									<input type="number" class="unitPrice form-control input-sm" name="unitPrice" quantity="1" itemId="$cartItem.getItemId()" 
-
 
140
									mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" dp="$dp" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder">
-
 
141
								</td>
-
 
142
								<td class = "table-align-center">
-
 
143
		    						<div class="input-group">
-
 
144
	    								<input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceamount" class="insuranceamount form-control input-sm" readonly>
-
 
145
	    								<input type="hidden" itemId="$cartItem.getItemId()" value = "0" name="insuranceid" class="insuranceid">
-
 
146
	    								<input type="hidden" itemId="$cartItem.getItemId()" name="ram" class="ram">
-
 
147
	    								<input type="hidden" itemId="$cartItem.getItemId()"  name="memory" class="memory">
-
 
148
	    								<input type="hidden" itemId="$cartItem.getItemId()"  name="mfgdate" class="mfgdate">
-
 
149
				    					<div class="input-group-btn">
-
 
150
					    					<button type="button" class="btn btn-sm btn-default mk_check_plans" 
-
 
151
					    							data-mop="$mopPriceMap.get($cartItem.getItemId()).getPrice()">
-
 
152
					    						Check Plans
-
 
153
					    					</button>
-
 
154
			    						</div>
-
 
155
			    					</div>
-
 
156
		    					</td>
-
 
157
								<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm  form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
-
 
158
							</tr>
-
 
159
						#end
-
 
160
					#else
131
						<tr>
161
						<tr>
132
							<td>$cartItem.getDisplayName()</td>
162
							<td>$cartItem.getDisplayName()</td>
133
    						<td class = "table-align-center">1</td>
163
							<td class = "table-align-center">$cartItem.getQuantity()</td>
134
							<td class = "table-align-center">
-
 
135
								<input readonly type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber input-sm form-control">
164
							<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>
136
							</td>
-
 
137
							<td class = "table-align-center">
165
							<td class = "table-align-center">
138
								<input type="number" class="unitPrice form-control input-sm" name="unitPrice" quantity="1" itemId="$cartItem.getItemId()" 
166
								<input type="number" class="unitPrice input-sm form-control" dp="$dp" name="unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" 
139
								mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" dp="$dp" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder">
167
									mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder" />
140
							</td>
168
							</td>
141
							<td class = "table-align-center">
169
							<td>Not Applicable</td>
142
	    						<div class="input-group">
-
 
143
    								<input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceamount" class="insuranceamount form-control input-sm" readonly>
-
 
144
    								<input type="hidden" itemId="$cartItem.getItemId()" value = "0" name="insuranceid" class="insuranceid">
-
 
145
    								<input type="hidden" itemId="$cartItem.getItemId()" name="ram" class="ram">
-
 
146
    								<input type="hidden" itemId="$cartItem.getItemId()"  name="memory" class="memory">
-
 
147
    								<input type="hidden" itemId="$cartItem.getItemId()"  name="mfgdate" class="mfgdate">
-
 
148
			    					<div class="input-group-btn">
-
 
149
				    					<button type="button" class="btn btn-sm btn-default mk_check_plans" 
-
 
150
				    							data-mop="$mopPriceMap.get($cartItem.getItemId()).getPrice()">
-
 
151
				    						Check Plans
-
 
152
				    					</button>
-
 
153
		    						</div>
-
 
154
		    					</div>
-
 
155
	    					</td>
-
 
156
							<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm  form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
170
							<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
157
						</tr>
171
						</tr>
-
 
172
	    			#end
-
 
173
	    		#end
-
 
174
	  		</table>
-
 
175
	  	</div>
-
 
176
  		<div class="row">
-
 
177
  			<div class="row">
-
 
178
  				<div class="col-lg-3">
-
 
179
					<h4 class="modelHeaderCustom" style="font-size:22px;">Customer Information
-
 
180
					#if (${isDev})
-
 
181
						<small><a href="javascript:void(0);"  id="mk_restore">(Restore Previous)</a></small>
158
					#end
182
					#end
159
				#else
-
 
160
					<tr>
-
 
161
						<td>$cartItem.getDisplayName()</td>
-
 
162
						<td class = "table-align-center">$cartItem.getQuantity()</td>
-
 
163
						<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>
-
 
164
						<td class = "table-align-center">
-
 
165
							<input type="number" class="unitPrice input-sm form-control" dp="$dp" name="unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" 
-
 
166
								mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder" />
-
 
167
						</td>
-
 
168
						<td>Not Applicable</td>
-
 
169
						<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
-
 
170
					</tr>
183
					</h4>
171
    			#end
-
 
172
    		#end
-
 
173
  		</table>
-
 
174
  		<div>
-
 
175
			<h4 class="modelHeaderCustom" style="font-size:22px;">Customer Information
-
 
176
			#if (${isDev})
-
 
177
				<small><a href="javascript:void(0);"  id="mk_restore">(Restore Previous)</a></small>
-
 
178
			#end
-
 
179
			</h4>
-
 
180
			<div class = "row">
-
 
181
				<div class="col-lg-3 form-group">
-
 
182
				   	<input placeholder="First Name" id="firstName" name="firstName" type="text" value="" class="form-control input-sm">
-
 
183
				</div>
-
 
184
				<div class="col-lg-3 form-group">
-
 
185
				   	<input placeholder="Last Name" id="lastName" name="lastName" type="text" value="" class="form-control input-sm">
-
 
186
				</div>
184
				</div>
187
				<div class="col-lg-2 form-group">
185
				<div class="col-lg-3" style="margin-top:15px"> 
188
					<input placeholder="Email*" id="email" name="email" type="text" value="" class="form-control input-sm">
186
					<input placeholder="Search Mobile" type="number" name="mobile" class="form-control search-phone input-sm">
189
				</div>
187
				</div>
190
				<div class="col-lg-2 form-group">
-
 
191
					<input placeholder = "Phone Number*" id="phone" addressId="" name="phone" type="text" value="" class="form-control phone input-sm">
-
 
192
				</div>
-
 
193
				
-
 
194
			</div>
188
			</div>
195
			<div class = "row">
-
 
196
				<div class="col-lg-3 form-group">
-
 
197
					<input placeholder="GST Number" id="gstNumber" name="gstNumber" type="text"  value="" class="form-control input-sm">
-
 
198
				</div>
-
 
199
				<div class="col-lg-3 form-group">
189
			<div class="row customerinfo">
200
				 	<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control input-sm">
-
 
201
				</div>
-
 
202
				<div class="col-lg-2 form-group">
-
 
203
					<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control input-sm">
-
 
204
				</div>
-
 
205
				<div class="col-lg-2 form-group">
190
				<div class="col-lg-2 form-group">
206
					<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text"  value="" class="form-control input-sm">
191
					<input placeholder="Mobile Number" type="number" name="mobile" class="form-control phone input-sm" readonly>
207
				</div>
192
				</div>
208
			</div>
-
 
209
			<div class = "row">
-
 
210
				<div class="col-lg-3 form-group">
193
				<div class="col-lg-3 form-group">
211
					<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control input-sm">
194
				   	<input placeholder="First Name" name="firstName" type="text" value="" class="form-control input-sm firstName">
212
				</div>
195
				</div>
213
				<div class="col-lg-3 form-group">
196
				<div class="col-lg-3 form-group">
214
					<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control input-sm">
197
				   	<input placeholder="Last Name" name="lastName" type="text" value="" class="form-control input-sm lastName">
215
				</div>
198
				</div>
216
				<div class="col-lg-2 form-group">
199
				<div class="col-lg-2 form-group">
217
					<input placeholder="City" id="city" name="city" type="text" value="" class="form-control input-sm">
200
				   	<input id="emailId" name="emailId" type="text" value="" class="form-control input-sm" placeholder="Email(xyz@gmail.com)">
218
				</div>
201
				</div>
219
				<div class="col-lg-2 form-group">
202
				<div class="col-lg-2 form-group">
220
					<select class="form-control input-sm" id = "state" name = "state" placeholder="State">
203
				   	<button type="button" class="btn btn-block btn-primary mk_add_customer" style="display:none">Add customer</button>
221
						<option value="" disabled selected>State</option>
-
 
222
						#foreach($stateName in $stateNames)
-
 
223
							#if($retailerStateName == $stateName)
-
 
224
								<option value="$stateName" selected>$stateName</option>
-
 
225
							#else
-
 
226
								<option value="$stateName">$stateName</option>
-
 
227
							#end
-
 
228
						#end
-
 
229
	             		
-
 
230
	                </select>
-
 
231
				</div>
204
				</div>
232
	     	</div>
205
  			</div>
-
 
206
  		</div>
233
	     	<div class="row mk_insurance_row" style="display:none">
207
  		<div class="row billinginfo" style="display:none">
234
	     	
-
 
235
				<div class="col-lg-3 form-group">
208
  			<div class="row">
236
				 <label for="gender">Gender</label>
209
  				<div class="col-lg-3">
237
					<select class="form-control input-sm" id="gender" name ="gender" placeholder="Gender">
210
					<h4 class="modelHeaderCustom" style="font-size:22px;">Billing Address</h4>
238
						<option value="" disabled selected>Gender</option>
-
 
239
						<option value="1" selected>Male</option>
-
 
240
						<option value="2" selected>Female</option>
-
 
241
	                </select>
-
 
242
				</div>
211
				</div>
-
 
212
				<div class="col-lg-3">
-
 
213
					<button type="button" class="btn btn-block btn-primary new-address-btn">New Address</button>
-
 
214
				</div>
-
 
215
			</div>
-
 
216
			<div class = "row">
243
				<div class="col-lg-3 form-group">
217
				<div class="col-lg-3 form-group">
244
				 <label for="dateOfBirth">Date Of Birth</label>
-
 
245
					<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="text" value="" class="form-control">
218
					<input placeholder="GST Number" id="gstNumber" name="gstNumber" type="text"  value="" class="form-control input-sm">
246
				</div>
219
				</div>
247
			</div>
220
			</div>
-
 
221
			<div class="row" id="customer-address">
-
 
222
				<table class="table table-bordered">
-
 
223
					<thead>
-
 
224
						<tr>
-
 
225
							<th>Name</th>
-
 
226
							<th>Address Lines</th>
-
 
227
							<th>City</th>
-
 
228
							<th>State</th>
-
 
229
							<th>Pin</th>
-
 
230
							<th>Mobile</th>
-
 
231
							<th>Action</th>
-
 
232
						</tr>
-
 
233
					</thead>
-
 
234
					<tbody id="address-body">
-
 
235
					</tbody>
-
 
236
				</table>
-
 
237
			</div>
-
 
238
		</div>
-
 
239
  		<div>
-
 
240
  			<div class="row">
-
 
241
				<h4 class="modelHeaderCustom" style="font-size:22px;">Insurance Informartion</h4>
-
 
242
			</div>
-
 
243
		</div>
-
 
244
  			<div class="row" style="display:none" id="customer-address">
-
 
245
			</div>  			
-
 
246
  			<div class="row" style="display:none" id="billing-details">
-
 
247
				
-
 
248
		     	<div class="row mk_insurance_row" style="display:none">
-
 
249
		     	
-
 
250
					<div class="col-lg-3 form-group">
-
 
251
					 <label for="gender">Gender</label>
-
 
252
						<select class="form-control input-sm" id="gender" name ="gender" placeholder="Gender">
-
 
253
							<option value="" disabled selected>Gender</option>
-
 
254
							<option value="1" selected>Male</option>
-
 
255
							<option value="2" selected>Female</option>
-
 
256
		                </select>
-
 
257
					</div>
-
 
258
					<div class="col-lg-3 form-group">
-
 
259
					 <label for="dateOfBirth">Date Of Birth</label>
-
 
260
						<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="text" value="" class="form-control">
-
 
261
					</div>
-
 
262
				</div>
-
 
263
  			</div>
248
     	</div>
264
     	</div>
249
	</div>
-
 
250
	<div class="col-lg-4 row">
265
     	<div class="col-lg-4 row">
251
		<div class="col-lg-1"></div>
266
		<div class="col-lg-1"></div>
252
		<div id="payment-details" style="background:white;background-color:white;" class="col-lg-10">
267
		<div id="payment-details" style="background:white;background-color:white;" class="col-lg-10">
253
			<h4 class="modelHeaderCustom" style="font-size:22px;">Payment Details</h4>
268
			<h4 class="modelHeaderCustom" style="font-size:22px;">Payment Details</h4>
254
			<div class="row">
269
			<div class="row">
255
				<div class="col-lg-7">
270
				<div class="col-lg-7">
Line 282... Line 297...
282
					<button class="btn btn-block btn-primary order-checkout" type="submit">Create Order</button>	
297
					<button class="btn btn-block btn-primary order-checkout" type="submit">Create Order</button>	
283
				</div>
298
				</div>
284
			</div>
299
			</div>
285
		</div>
300
		</div>
286
	</div>
301
	</div>
-
 
302
	</div>
287
</div>
303
</div>
288
#end
304
#end
289
</div>
305
</div>
290
</form>
306
</form>
291
</section>
307
</section>
Line 327... Line 343...
327
      	</div> 
343
      	</div> 
328
	  </div>
344
	  </div>
329
    </div>
345
    </div>
330
  </div>
346
  </div>
331
</div>
347
</div>
-
 
348
 
-
 
349
<div class="modal modal-lg row" id="newaddressModal" tabindex="-1" role="dialog">
-
 
350
	<div class="modal-dialog modal-lg" role="document">
-
 
351
		<div class="modal-content">
-
 
352
			<div class="modal-header">
-
 
353
		        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
-
 
354
		        <h4 class="modal-title">New Address</h4>
-
 
355
      		</div>
-
 
356
			<div class="modal-body" id="newaddress">
-
 
357
		      	<div class = "row">
-
 
358
					<div class="col-lg-4 form-group">
-
 
359
					   	<input placeholder="First Name" id="firstName" name="firstName" type="text" value="" class="form-control input-sm">
-
 
360
					</div>
-
 
361
					<div class="col-lg-4 form-group">
-
 
362
					   	<input placeholder="Last Name" id="lastName" name="lastName" type="text" value="" class="form-control input-sm">
-
 
363
					</div>
-
 
364
					<div class="col-lg-4 form-group">
-
 
365
						<input placeholder="Mobile Number" id="alternatePhone" name="alternatePhone" type="text"  value="" class="form-control input-sm">
-
 
366
					</div>
-
 
367
				</div>
-
 
368
				<div class = "row">
-
 
369
					<div class="col-lg-4 form-group">
-
 
370
					 	<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control input-sm">
-
 
371
					</div>
-
 
372
					<div class="col-lg-4 form-group">
-
 
373
						<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control input-sm">
-
 
374
					</div>
-
 
375
					<div class="col-lg-4 form-group">
-
 
376
						<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control input-sm">
-
 
377
					</div>
-
 
378
				</div>
-
 
379
				<div class = "row">
-
 
380
					<div class="col-lg-3 form-group">
-
 
381
						<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control input-sm">
-
 
382
					</div>
-
 
383
					<div class="col-lg-3 form-group">
-
 
384
						<input placeholder="City" id="city" name="city" type="text" value="" class="form-control input-sm">
-
 
385
					</div>
-
 
386
					<div class="col-lg-3 form-group">
-
 
387
						<select class="form-control input-sm" id = "state" name = "state" placeholder="State">
-
 
388
							<option value="" disabled selected>State</option>
-
 
389
							#foreach($stateName in $stateNames)
-
 
390
								#if($retailerStateName == $stateName)
-
 
391
									<option value="$stateName" selected>$stateName</option>
-
 
392
								#else
-
 
393
									<option value="$stateName">$stateName</option>
-
 
394
								#end
-
 
395
							#end
-
 
396
			         		
-
 
397
			            </select>
-
 
398
					</div>
-
 
399
			 	</div>
-
 
400
			</div>
-
 
401
			<div class="modal-footer">
-
 
402
				<button type="button" class="btn btn-primary btn-add-address">Add Address</button>
-
 
403
			</div>
-
 
404
		</div>
-
 
405
	</div>
-
 
406
</div>
332
407