Subversion Repositories SmartDukaan

Rev

Rev 6903 | Rev 6971 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3830 chandransh 1
	#set($Integer = 0)
2
	#if($defaultAddressId)
3
		#set($defaultid = $Integer.parseInt($defaultAddressId))
4
	#else
5
		#set($defaultid = 0)
6
	#end
7
 
6903 anupam.sin 8
	#if($defaultStoreAddressId)
5716 anupam.sin 9
		#set($defaultStoreId = $Integer.parseInt($defaultStoreAddressId))
10
	#else
5746 anupam.sin 11
		#set($defaultStoreId = 0)
5716 anupam.sin 12
	#end
13
 
3830 chandransh 14
	#if(!$errorMsg.isEmpty())
15
		<div id="messageError">
16
			<span></span>
17
			<p>$errorMsg <br/></p>
18
		</div>
19
	#end
5920 anupam.sin 20
	<div id="proceedToPayContainer" style="float:left; width:100%">
3830 chandransh 21
		<div class="free-shipping left">
22
			<div class="label">Shipping to your area is <span class="orange">FREE</span>.</div>
23
			<div class="payment-modes-msg">
24
				We accept all <b>credit / debit cards</b> and <b>netbanking facilities</b>. You can also pay <b>Cash on Delivery</b>.
25
			</div>
5920 anupam.sin 26
			#if($selectedTab == "HotSpot")
27
				#set($visibility = "")
28
			#else
29
				#set($visibility = "invisibleDiv")
30
			#end
31
			<div id="inStoreLocationMsg" style="color:red; font-size:15px" class="$visibility">
32
				Pickup in store is currently available only for Delhi/NCR
33
			</div>
3830 chandransh 34
		</div>
35
		<form id="formProceedToPay" action="/proceed-to-pay" method="post">
36
			<input type="hidden" value="$defaultid" name="addressid" id="addressid">
5716 anupam.sin 37
			<input type="hidden" name="deliveryLocation" value="$selectedTab" id="tabSelector">
38
			<input type="hidden" name="hotSpotAddressId" value="$defaultStoreId" id="hotSpotAddressId">
3830 chandransh 39
		</form>
3903 varun.gupt 40
		<div id="proceedToPay" class="cartflow-main-action-button right">PROCEED TO PAYMENT &gt;</div>
5920 anupam.sin 41
	</div>	
3830 chandransh 42
		#if($items)
43
		<div class="cart-container left">
44
			<table id="cartDetail" cellpadding="0" cellspacing="0" class="left">
45
				<thead>
46
					<tr>
47
						<th width="212" class="first">Item &amp; Color</th>
48
						<th width="117">Delivery Time</th>
49
						<th width="99">Total Price </th>
50
                    </tr>
51
                </thead>
52
				<tbody>
53
				#foreach($item in $items)
54
					#if($item.get("SHIPPING_TIME") == -1)
55
						#set($locationServiceable = 0)
56
						#set($messageShippingTime = "Location not serviceable")
57
					#else
58
						#set($locationServiceable = 1)
59
						#set($messageShippingTime = $item.get("SHIPPING_TIME") + " Bus. Days")
60
					#end
61
					<tr>
6903 anupam.sin 62
						#set($style='')
63
						#if(!$item.get("INSURER").equals("0"))
64
							#set($style = 'background: white url("/images/insuredStamp.png") no-repeat right;background-size: 76px;')
65
						#end
66
						<td style='$style'>
3830 chandransh 67
							<div class="cart-item-name-div padding5">
4217 varun.gupt 68
                                <span class="cart-item-name">$item.get("ITEM_NAME")</span><br/>
3830 chandransh 69
								<span class="cart-item-color">$item.get("ITEM_COLOR")</span>
4225 varun.gupt 70
						#if($item.get("BEST_DEAL_TEXT"))
71
								<div class="cart-item-best-deal-text">$item.get("BEST_DEAL_TEXT")</div>
4217 varun.gupt 72
						#end
3830 chandransh 73
                            </div>
74
                        </td>
75
						<td id="shipping_time_$item.get("ITEM_ID")">$messageShippingTime</td>
76
						<td>
77
							<img src="/images/rupee-symbol.png" alt="Rs." /> 
78
							$item.get("TOTAL_PRICE")<br />(for $item.get("ITEM_QUANTITY") pcs)
79
						</td>
80
                    </tr>
81
				#end
82
				#if($couponcode != "")
83
					#set($cssClass = "")
84
				#else
85
					#set($cssClass = "payable")
86
				#end
6903 anupam.sin 87
				#if($totalInsurance != "0.00")
88
					<tr>
89
						<td colspan ='2' class='label' style='border:none;'>1 Year WorldWide Theft Insurance</td>
90
						<td style='border:none;'><img src="/images/rupee-symbol.png" alt="Rs." /> $totalInsurance</td>
91
					</tr>
92
				#end
93
				#if($couponcode == "")
94
				<tr>
95
					<td colspan='2' class="label">SHIPPING</td>
96
					<td class="orange">FREE</td>
97
				</tr>
98
				<tr class="total-amount payable" style='background-color:#FFFFCC;font-size:14px;font-weight:bold;'>
99
					<td colspan='2' class="label">Total Amount</td>
3830 chandransh 100
					<td><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td>
101
				</tr>
6903 anupam.sin 102
				#else
103
				<tr class="total-amount">
104
    				<td colspan='2' class="label" style='border:none;'>Coupon <span style='font-weight:bold;color:#2789C1;font-size:14px;'>$couponcode</span></td>
105
    				<td style='border:none;'><img src="/images/rupee-symbol.png" alt="Rs." /> $discount</td>
3830 chandransh 106
				</tr>
6903 anupam.sin 107
				<tr>
108
					<td colspan='2' class="label">SHIPPING</td>
109
					<td class="orange">FREE</td>
110
				</tr>
111
				<tr class="discounted-amount payable" style='background-color:#FFFFCC;font-size:14px;font-weight:bold;'>
112
					<td colspan='2' class="label">Total Amount</td>
113
					<td id="discountedAmount"><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedamount</td>
114
				</tr>
3830 chandransh 115
				#end
6903 anupam.sin 116
                </tbody>
117
            </table>
3830 chandransh 118
        </div>
119
		#end
6903 anupam.sin 120
		#if($insuranceDetailsRequired.equals("standAlone"))
121
    		<div id="insuranceDetailDiv" style="margin-bottom:10px;box-shadow: 0 0 5px 0px #AAA inset;padding:10px;border: 1px solid #AAA;float:right;width: 472px;">
122
    			<div id='thanks' style='display:none;color:#2789c1;font-size:14px;text-align:center;'>Thank you!</div>
123
            	<h3>Please enter the following details</h3>
124
            	<form id="insuranceDetailsForm" style="padding:7px 7px 0 7px;">
125
            		   <div style="margin-bottom:7px;">
126
            			<span style="font-size:13px;color:#444;display:inline-block;width: 42%;text-align: right;padding-right: 5px;">Father's/Husband's Name : </span>
127
            			<span style="display:inline-block;width:55%;">
128
            				<input id='guardianName' class='insuranceDetailField' name="guardianName" type="text">
129
            			</span>
130
            		</div>
131
            		<div style="margin-bottom:7px;">
132
            		   	<span style="font-size:13px;color:#444;display:inline-block;width: 42%;text-align: right;padding-right: 5px;">Date of Birth (dd/mm/yyyy) : </span>
133
            			<span style="display:inline-block;width:55%;">
134
            				<input id='dob' name="dob" class='insuranceDetailField' type="text" style='color:#999;' value='Example: 18/08/1986'>
135
            			</span>
136
            			<input id="insuranceType" type="hidden" name="insuranceType" value="">
137
            		</div>
138
            		<div style="margin:13px 5px 13px 0;text-align: right;">
139
            			<input id='submitInsuranceDetails' type="button" value="Submit" style="height: 25px;width: 125px;background-color: skyblue;color: black;font-weight: bold;">
140
            		</div>
141
            		<div id="insuranceHelpInfo" style="border-top:1px solid #999;color:#777;font-size:13px;padding:5px;">
142
            				We need these details for the purpose of insurance.<br>
143
            				If you do not wish to take insurance <a id="cancelInsurance" style="cursor:pointer">click here</a><br>
144
            				If this product is being billed in the name of an institution <a id="companyInsurance" style="cursor:pointer">click here</a>
145
            		</div>
146
            	</form>
147
            </div>
148
		#end
5716 anupam.sin 149
		<div id="main-right-container">
150
			#set($myLocation-tab-status = "selected-tab")
151
			#set($hotSpot-tab-status = "unselected-tab")
152
			#set($shipping-div-status = "")
6251 kshitij.so 153
 
5716 anupam.sin 154
			#set($billing-and-store-div-status = "hidden-div")
155
			#if($selectedTab == "HotSpot")
156
				#set($myLocation-tab-status = "unselected-tab")
157
				#set($hotSpot-tab-status = "selected-tab")
158
				#set($shipping-div-status = "hidden-div")
159
				#set($billing-and-store-div-status = "")
160
			#end
161
			<div id="tab-container">
162
    			<div id="tab-left" class=$myLocation-tab-status>DELIVER TO MY ADDRESS</div>
6936 anupam.sin 163
    			<div class=$hotSpot-tab-status id="tab-right" style="padding: 5px 9px 3px 39px; margin-right: 0px; width: 190px; text-align: left; margin-top: 13px; border-top-width: 1px;">PICKUP IN STORE
164
                     <a style="padding-left:2px" href="javascript:void(0)" id="pickupstoreInfo">
165
		 				<img id="whats-this" style="vertical-align:middle" src="/images/quesmark.png">
166
		 			</a>
5765 anupam.sin 167
				</div>
5716 anupam.sin 168
			</div>
5614 rajveer 169
 
5716 anupam.sin 170
			<div id="store-address-div" class=$billing-and-store-div-status>
171
    			<div id="hotspot-address-heading" class="label">
5765 anupam.sin 172
					<div id="store-address-header-text" class="address-header-text">&nbsp;Select a pickup point (<b>$storeAddresses.size()</b> stores available)</div>
5746 anupam.sin 173
					<div id="zone-selector-div">
174
						<select id="zone-selector">
175
							#foreach($zone in $allZones)
5751 anupam.sin 176
								#if($zone == "All")
177
									<option id="$zone" value="$zone" >Select Zone</option>
178
								#else
179
    								#set($stringWithoutSpace = $zone.replace(" ", "_"))
180
    								<option id="$stringWithoutSpace" value="$stringWithoutSpace" >$zone</option>
181
								#end
5746 anupam.sin 182
							#end
183
						</select>
184
					</div>
5716 anupam.sin 185
				</div>
186
    			<div id="store-address-container">
187
            		<table id="store-addresses" class="shipping-page-addresses right">
188
            			<tbody>
189
                    		#foreach($storeAddress in $storeAddresses)
190
                    			#set($storeAddressId = $storeAddress.getId())
191
 
192
                    			#if($defaultStoreId == $storeAddressId)
193
                    				#set($cssClassDefault = "default-address")
194
                    			#else
195
                    				#set($cssClassDefault = "")
196
                    			#end
5746 anupam.sin 197
                    				<tr id="tr_$storeAddress.getId()" class="address $cssClassDefault" zone="$storeAddress.getZone().replace(" ", "_")">
5716 anupam.sin 198
                    					<td align="center" valign="top" class="radio">
199
                    			#if($defaultStoreId == $storeAddressId)
200
            						<img src="/images/RadioButton_Selected.png" />
201
            						<input type="hidden" id="selectedPincode" value="$storeAddress.getPin()" />
202
        						#else
203
                    				<img id="selectStoreAddress_$storeAddressId" class="store-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Store for Shipment" />
204
                    						<form id="formChangeStoreAddressTo_$storeAddressId" method="post" action="/shipping">
205
												<input type="hidden" name="selectedTab" value="HotSpot" />
206
												<input type="hidden" name="addressid" value="$storeAddressId" />
207
												<input type="hidden" name="action" value="change" />
208
        									</form>
209
                    			#end
210
                                        </td>
211
                    					<td class="detail">
212
                    						#if($storeAddress.getName())
213
                    							<b>$storeAddress.getName()</b><br />
214
                            				#end
215
                            				#if($storeAddress.getLine1())
216
                    							<label>$storeAddress.getLine1() </label><br />
217
                            				#end	
218
                            				#if($storeAddress.getLine2() != "")
219
                    							<label>$storeAddress.getLine2()</label><br />
220
                            				#end
221
                            				#if($storeAddress.getCity())	
222
                    							<label>$storeAddress.getCity()</label><br />
223
                            				#end
224
                            				#if($storeAddress.getState())
225
                    							<label>$storeAddress.getState()</label><br />
226
                            				#end
227
                            				#if($storeAddress.getPin())	
228
                    							<label>Pin: $storeAddress.getPin()</label>
229
                    						#end
230
                                            </p>
231
                            				#if($storeAddress.getPhone())
232
                                            <b>Phone: $storeAddress.getPhone() </b>
233
                            				#end
234
                                        </td>
235
                                    </tr>
236
                    		#end
237
                        </tbody>
238
                    </table>
239
    			</div><!--End of store address container-->
240
			</div>
241
			<div id="billing-address-div" class=$billing-and-store-div-status>
242
    			<div id="billing-address-header" class="address-header label left">
243
    				<div id="billing-address-header-text" class="address-header-text">Select Billing Address</div>
244
    				<button id="addAddress" class="right">+ Add New Address</button>
245
    			</div>
246
    			<div id="billing-address-container">
247
    				<table id="billing-addresses" class="shipping-page-addresses right">
248
            			<thead></thead>
249
            			<tbody>
250
            		#set($shipAddressEmpty = 1)
251
            		#foreach($address in $addresses)
252
            			#set($shipAddressEmpty = 0)
253
            			#set($addressId = $address.getId())
254
 
255
            			#if($defaultid == $addressId)
256
            				#set($cssClassDefault = "default-address")
257
            			#else
258
            				#set($cssClassDefault = "")
259
            			#end
260
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
261
            					<td align="center" valign="top" class="radio">
262
            			#if($defaultid == $addressId)
263
            				#set($shipAddressEmpty = 0)
264
							<img id="selectAddress_$addressId" class="dummy-class" src="/images/RadioButton_Selected.png" title="Select this Address for Shipment" />
265
            						<!--<input type="hidden" id="selectedPincode" value="$address.getPin()" />-->
266
            			#else
267
            					    <img id="selectAddress_$addressId" class="billing-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
268
            						<!--<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$addressId">
269
									</form>-->
270
            			#end
271
                                </td>
272
            					<td class="detail">
273
            						#if($address.getName())
274
            							<b>$address.getName()</b><br />
275
                    				#end
276
                    				#if($address.getLine1())
277
            							<label>$address.getLine1() </label><br />
278
                    				#end	
279
                    				#if($address.getLine2() != "")
280
            							<label>$address.getLine2()</label><br />
281
                    				#end
282
                    				#if($address.getCity())	
283
            							<label>$address.getCity()</label><br />
284
                    				#end
285
                    				#if($address.getState())
286
            							<label>$address.getState()</label><br />
287
                    				#end
288
                    				#if($address.getPin())	
289
            							<label>Pin: $address.getPin()</label>
290
            						#end
291
                                    </p>
292
                    				#if($address.getPhone())
293
                                    <b>Phone: $address.getPhone() </b>
294
                    				#end
295
                                </td>
296
            					<!--<td class="delete">
297
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
298
								</td>-->
299
                            </tr>
300
            		#end
301
            		#if($shipAddressEmpty!=0)
302
                            <tr><td colspan="2">You do not have an address linked to your profile. Please add one.</td></tr>
303
            		#end
304
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
305
                        </tbody>
306
                    </table>
307
    			</div>
308
			</div>
309
			<div id="shipping-address-div" class=$shipping-div-status>
310
    			<div id="shipping-address-header" class="address-header label left">
311
    				<div id="shipping-address-header-text" class="address-header-text">Select Shipping Address</div>
312
    				<button id="addAddress" class="right">+ Add New Address</button>
313
    			</div>
314
    			<div id="shipping-address-container">
315
    				<table id="shipping-addresses" class="shipping-page-addresses right">
316
            			<thead></thead>
317
            			<tbody>
318
            		#set($shipAddressEmpty = 1)
319
            		#foreach($address in $addresses)
320
            			#set($shipAddressEmpty = 0)
321
            			#set($addressId = $address.getId())
322
 
323
            			#if($defaultid == $addressId)
324
            				#set($cssClassDefault = "default-address")
325
            			#else
326
            				#set($cssClassDefault = "")
327
            			#end
328
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
329
            					<td align="center" valign="top" class="radio">
330
            			#if($defaultid == $addressId)
331
            				#set($shipAddressEmpty = 0)
332
            						<img src="/images/RadioButton_Selected.png" />
333
            						<input type="hidden" id="selectedPincode" value="$address.getPin()" />
334
            			#else
335
            					    <img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
336
            						<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=myLocation&addressid=$addressId">
337
									</form>
338
            			#end
339
                                </td>
340
            					<td class="detail">
341
            						#if($address.getName())
342
            							<b>$address.getName()</b><br />
343
                    				#end
344
                    				#if($address.getLine1())
345
            							<label>$address.getLine1() </label><br />
346
                    				#end	
347
                    				#if($address.getLine2() != "")
348
            							<label>$address.getLine2()</label><br />
349
                    				#end
350
                    				#if($address.getCity())	
351
            							<label>$address.getCity()</label><br />
352
                    				#end
353
                    				#if($address.getState())
354
            							<label>$address.getState()</label><br />
355
                    				#end
356
                    				#if($address.getPin())	
357
            							<label>Pin: $address.getPin()</label>
358
            						#end
359
                                    </p>
360
                    				#if($address.getPhone())
361
                                    <b>Phone: $address.getPhone() </b>
362
                    				#end
363
                                </td>
364
                            </tr>
365
            		#end
366
            		#if($shipAddressEmpty!=0)
367
                            <tr><td colspan="2">You do not an shipping address linked to your profile. Please add one.</td></tr>
368
            		#end
369
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
370
                        </tbody>
371
                    </table>
372
    			</div>
373
			</div>
861 vikas 374
 
3830 chandransh 375
		#if($shipAddressEmpty == 1)
376
			<input type="hidden" id="canProceedToPay" value="0" />
5831 anupam.sin 377
			<input type="hidden" id="reasonActionDisability" value="No address selected" />
3830 chandransh 378
		#elseif($locationServiceable == 0)
379
			<input type="hidden" id="canProceedToPay" value="0" />
380
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
3101 chandransh 381
		#else
3830 chandransh 382
			<input type="hidden" id="canProceedToPay" value="1" />
3101 chandransh 383
		#end
3830 chandransh 384
		<!-- Add Shipping Detail Start-->
385
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
386
			<table cellpadding="0" cellspacing="0">
387
				<thead>
388
					<tr class="header">
5803 anupam.sin 389
						#if($selectedTab == "HotSpot")
390
							<td id="newAddressFormHeading" colspan="2">Enter the address which you want printed on the bill</td>
391
						#else
392
							<td id="newAddressFormHeading" colspan="2">Enter the address where you want the items to be delivered</td>
393
						#end
3830 chandransh 394
					</tr>
395
                </thead>
396
				<tbody>
397
					<tr>
398
						<td>&nbsp;</td>
399
						<td class="instruction">All Fields are required</td>
400
                    </tr>
6903 anupam.sin 401
					#if($insuranceDetailsRequired.equals("inForm"))
402
						<tr>
403
        					<td class="label" align="right"><sup>*</sup>Father's/Husband's Name:</td>
404
        					<td class="input">
405
        						<input type="text" id="guardianName" name="guardianName" class="searchbox right" >
406
    							</input>
407
        					</td>
408
        				</tr>
409
						<tr>
410
        					<td class="label" align="right"><sup>*</sup>Date of Birth:</td>
411
        					<td class="input">
412
        						<input type="text" id="dob" name="dob" style='color:#999;' value='Example: 18/08/1986' class="searchbox right" >
413
    							</input>
414
        					</td>
415
        				</tr>
416
						<tr id="insuranceHelpInfo">
417
							<td colspan="2" style="color:#777;font-size:13px;padding:5px;">
418
                				We need the above details for the purpose of insurance.<br>
419
                				If you do not wish to take insurance <a id="cancelInsurance" style="cursor:pointer">click here</a><br>
420
								<hr>
421
							</td>	
422
						</tr>
423
					#end
424
					<tr>
425
    					<td class="label" align="right"><sup>*</sup>Name:</td>
426
    					<td class="input">
427
    						<input type="text" id="shipName" name="name" class="searchbox right" >
428
							</input>
429
    					</td>
430
    				</tr>
431
                    <tr>
432
    					<td class="label" align="right"><sup>*</sup>Address Line 1:</td>
433
    					<td class="input">
434
    						<input type="text" id="shipAddress1" name="line1" class="searchbox right" />
435
    					</td>
436
    				</tr>
437
                    <tr>
438
    					<td class="label" align="right">Address Line 2:</td>
439
    					<td class="input">
440
    						<input type="text" id="shipAddress2" name="line2" class="searchbox right" />
441
    					</td>
442
    				</tr>
443
                    <tr>
444
    					<td class="label" align="right"><sup>*</sup>State</td>
445
    					<td class="input">
446
    						<select class="select_state" name="state" id="shipState">
447
    						#include("templates/stateslist.vm")
448
    						</select>
449
    					</td>
450
    				</tr>
451
                    <tr>
452
    					<td class="label" align="right"><sup>*</sup>City:</td>
453
    					<td class="input">
454
    						<input type="text" id="shipCity" name="city" class="searchbox"/>
455
    					</td>
456
    				</tr>
457
                    <tr>
458
    					<td class="label" align="right"><sup>*</sup>Pin Code:</td>
459
    					<td class="input">
460
    						<input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" />
461
    					</td>
462
    				</tr>
463
                    <tr>
464
    					<td class="label" align="right"><sup>*</sup>Phone:</td>
465
    					<td class="input">
466
    						<input type="text" id="shipPhone" name="phone" value="" class="searchbox right" />
467
    					</td>
468
    				</tr>
469
                    <tr>
470
    					<td colspan="2" align="center">
471
    						<input type="hidden" name="action" value="add" />
472
    						<input type="submit"  id="submitAddress" value="Save" class="new-button" />
473
    						<a id="closeAddAddressForm">Close</a>
474
    					</td>
475
    				</tr>
476
    				<tr>
477
    					<td>&nbsp;</td>
478
    					<td class="instruction">This will be added to your list of addresses</td>
479
    				</tr>
3830 chandransh 480
                </tbody>
481
			</table>
5831 anupam.sin 482
			#if($selectedTab == "HotSpot")
483
				<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="HotSpot" />
484
			#else
485
				<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
486
			#end
5716 anupam.sin 487
		</form>
488
	</div><!--End of main-right- Container-->