Subversion Repositories SmartDukaan

Rev

Rev 5920 | Rev 6903 | 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
 
5716 anupam.sin 8
	#if($defaultStoreAddressId && $defaultStoreAddressId != 0)
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>
62
						<td>
63
							<div class="cart-item-name-div padding5">
4217 varun.gupt 64
                                <span class="cart-item-name">$item.get("ITEM_NAME")</span><br/>
3830 chandransh 65
								<span class="cart-item-color">$item.get("ITEM_COLOR")</span>
4225 varun.gupt 66
						#if($item.get("BEST_DEAL_TEXT"))
67
								<div class="cart-item-best-deal-text">$item.get("BEST_DEAL_TEXT")</div>
4217 varun.gupt 68
						#end
3830 chandransh 69
                            </div>
70
                        </td>
71
						<td id="shipping_time_$item.get("ITEM_ID")">$messageShippingTime</td>
72
						<td>
73
							<img src="/images/rupee-symbol.png" alt="Rs." /> 
74
							$item.get("TOTAL_PRICE")<br />(for $item.get("ITEM_QUANTITY") pcs)
75
						</td>
76
                    </tr>
77
				#end
78
                </tbody>
79
            </table>
80
			<table class="right net-amount" cellspacing="0">
81
				<tr>
82
					<td class="label">SHIPPING:</td>
83
					<td class="orange">FREE</td>
84
				</tr>
85
				#if($couponcode != "")
86
					#set($cssClass = "")
87
				#else
88
					#set($cssClass = "payable")
89
				#end
90
				<tr class="total-amount $cssClass">
91
					<td class="label">Total Amount:</td>
92
					<td><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td>
93
				</tr>
94
				#if($couponcode != "")
95
				<tr class="discounted-amount payable">
4923 varun.gupt 96
					<td class="label">Amount Payable:<br />(After Discount)</td>
3831 rajveer 97
					<td><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedamount</td>
3830 chandransh 98
				</tr>
99
				#end
100
			</table>
101
        </div>
102
		#end
103
 
5716 anupam.sin 104
		<div id="main-right-container">
105
			#set($myLocation-tab-status = "selected-tab")
106
			#set($hotSpot-tab-status = "unselected-tab")
107
			#set($shipping-div-status = "")
6251 kshitij.so 108
 
5716 anupam.sin 109
			#set($billing-and-store-div-status = "hidden-div")
110
			#if($selectedTab == "HotSpot")
111
				#set($myLocation-tab-status = "unselected-tab")
112
				#set($hotSpot-tab-status = "selected-tab")
113
				#set($shipping-div-status = "hidden-div")
114
				#set($billing-and-store-div-status = "")
115
			#end
116
			<div id="tab-container">
117
    			<div id="tab-left" class=$myLocation-tab-status>DELIVER TO MY ADDRESS</div>
6251 kshitij.so 118
    			<div class=$hotSpot-tab-status id="tab-right" style="padding: 5px 9px 3px 39px; margin-right: 0px; width: 198px; text-align: left; margin-top: 12px; border-top-width: 1px;">PICKUP IN STORE
119
                     <a id="pickupstoreInfo" href="#">					
120
                     <span id="whats-this" style="margin-left: 3px; width: 57px; cursor: pointer; color: blue; font-weight: bold; font-size: 9px; text-align: right;">What's this?</span>
121
                     </a>
122
			    <div style="width: 37px; top: -18px;" id="pickup-tab-new-icon-container"></div>
5765 anupam.sin 123
				</div>
5716 anupam.sin 124
			</div>
5614 rajveer 125
 
5716 anupam.sin 126
			<div id="store-address-div" class=$billing-and-store-div-status>
127
    			<div id="hotspot-address-heading" class="label">
5765 anupam.sin 128
					<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 129
					<div id="zone-selector-div">
130
						<select id="zone-selector">
131
							#foreach($zone in $allZones)
5751 anupam.sin 132
								#if($zone == "All")
133
									<option id="$zone" value="$zone" >Select Zone</option>
134
								#else
135
    								#set($stringWithoutSpace = $zone.replace(" ", "_"))
136
    								<option id="$stringWithoutSpace" value="$stringWithoutSpace" >$zone</option>
137
								#end
5746 anupam.sin 138
							#end
139
						</select>
140
					</div>
5716 anupam.sin 141
				</div>
142
    			<div id="store-address-container">
143
            		<table id="store-addresses" class="shipping-page-addresses right">
144
            			<tbody>
145
                    		#foreach($storeAddress in $storeAddresses)
146
                    			#set($storeAddressId = $storeAddress.getId())
147
 
148
                    			#if($defaultStoreId == $storeAddressId)
149
                    				#set($cssClassDefault = "default-address")
150
                    			#else
151
                    				#set($cssClassDefault = "")
152
                    			#end
5746 anupam.sin 153
                    				<tr id="tr_$storeAddress.getId()" class="address $cssClassDefault" zone="$storeAddress.getZone().replace(" ", "_")">
5716 anupam.sin 154
                    					<td align="center" valign="top" class="radio">
155
                    			#if($defaultStoreId == $storeAddressId)
156
            						<img src="/images/RadioButton_Selected.png" />
157
            						<input type="hidden" id="selectedPincode" value="$storeAddress.getPin()" />
158
        						#else
159
                    				<img id="selectStoreAddress_$storeAddressId" class="store-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Store for Shipment" />
160
                    						<form id="formChangeStoreAddressTo_$storeAddressId" method="post" action="/shipping">
161
												<input type="hidden" name="selectedTab" value="HotSpot" />
162
												<input type="hidden" name="addressid" value="$storeAddressId" />
163
												<input type="hidden" name="action" value="change" />
164
        									</form>
165
                    			#end
166
                                        </td>
167
                    					<td class="detail">
168
                    						#if($storeAddress.getName())
169
                    							<b>$storeAddress.getName()</b><br />
170
                            				#end
171
                            				#if($storeAddress.getLine1())
172
                    							<label>$storeAddress.getLine1() </label><br />
173
                            				#end	
174
                            				#if($storeAddress.getLine2() != "")
175
                    							<label>$storeAddress.getLine2()</label><br />
176
                            				#end
177
                            				#if($storeAddress.getCity())	
178
                    							<label>$storeAddress.getCity()</label><br />
179
                            				#end
180
                            				#if($storeAddress.getState())
181
                    							<label>$storeAddress.getState()</label><br />
182
                            				#end
183
                            				#if($storeAddress.getPin())	
184
                    							<label>Pin: $storeAddress.getPin()</label>
185
                    						#end
186
                                            </p>
187
                            				#if($storeAddress.getPhone())
188
                                            <b>Phone: $storeAddress.getPhone() </b>
189
                            				#end
190
                                        </td>
191
                                    </tr>
192
                    		#end
193
                        </tbody>
194
                    </table>
195
    			</div><!--End of store address container-->
196
			</div>
197
			<div id="billing-address-div" class=$billing-and-store-div-status>
198
    			<div id="billing-address-header" class="address-header label left">
199
    				<div id="billing-address-header-text" class="address-header-text">Select Billing Address</div>
200
    				<button id="addAddress" class="right">+ Add New Address</button>
201
    			</div>
202
    			<div id="billing-address-container">
203
    				<table id="billing-addresses" class="shipping-page-addresses right">
204
            			<thead></thead>
205
            			<tbody>
206
            		#set($shipAddressEmpty = 1)
207
            		#foreach($address in $addresses)
208
            			#set($shipAddressEmpty = 0)
209
            			#set($addressId = $address.getId())
210
 
211
            			#if($defaultid == $addressId)
212
            				#set($cssClassDefault = "default-address")
213
            			#else
214
            				#set($cssClassDefault = "")
215
            			#end
216
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
217
            					<td align="center" valign="top" class="radio">
218
            			#if($defaultid == $addressId)
219
            				#set($shipAddressEmpty = 0)
220
							<img id="selectAddress_$addressId" class="dummy-class" src="/images/RadioButton_Selected.png" title="Select this Address for Shipment" />
221
            						<!--<input type="hidden" id="selectedPincode" value="$address.getPin()" />-->
222
            			#else
223
            					    <img id="selectAddress_$addressId" class="billing-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
224
            						<!--<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$addressId">
225
									</form>-->
226
            			#end
227
                                </td>
228
            					<td class="detail">
229
            						#if($address.getName())
230
            							<b>$address.getName()</b><br />
231
                    				#end
232
                    				#if($address.getLine1())
233
            							<label>$address.getLine1() </label><br />
234
                    				#end	
235
                    				#if($address.getLine2() != "")
236
            							<label>$address.getLine2()</label><br />
237
                    				#end
238
                    				#if($address.getCity())	
239
            							<label>$address.getCity()</label><br />
240
                    				#end
241
                    				#if($address.getState())
242
            							<label>$address.getState()</label><br />
243
                    				#end
244
                    				#if($address.getPin())	
245
            							<label>Pin: $address.getPin()</label>
246
            						#end
247
                                    </p>
248
                    				#if($address.getPhone())
249
                                    <b>Phone: $address.getPhone() </b>
250
                    				#end
251
                                </td>
252
            					<!--<td class="delete">
253
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
254
								</td>-->
255
                            </tr>
256
            		#end
257
            		#if($shipAddressEmpty!=0)
258
                            <tr><td colspan="2">You do not have an address linked to your profile. Please add one.</td></tr>
259
            		#end
260
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
261
                        </tbody>
262
                    </table>
263
    			</div>
264
			</div>
265
			<div id="shipping-address-div" class=$shipping-div-status>
266
    			<div id="shipping-address-header" class="address-header label left">
267
    				<div id="shipping-address-header-text" class="address-header-text">Select Shipping Address</div>
268
    				<button id="addAddress" class="right">+ Add New Address</button>
269
    			</div>
270
    			<div id="shipping-address-container">
271
    				<table id="shipping-addresses" class="shipping-page-addresses right">
272
            			<thead></thead>
273
            			<tbody>
274
            		#set($shipAddressEmpty = 1)
275
            		#foreach($address in $addresses)
276
            			#set($shipAddressEmpty = 0)
277
            			#set($addressId = $address.getId())
278
 
279
            			#if($defaultid == $addressId)
280
            				#set($cssClassDefault = "default-address")
281
            			#else
282
            				#set($cssClassDefault = "")
283
            			#end
284
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
285
            					<td align="center" valign="top" class="radio">
286
            			#if($defaultid == $addressId)
287
            				#set($shipAddressEmpty = 0)
288
            						<img src="/images/RadioButton_Selected.png" />
289
            						<input type="hidden" id="selectedPincode" value="$address.getPin()" />
290
            			#else
291
            					    <img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
292
            						<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=myLocation&addressid=$addressId">
293
									</form>
294
            			#end
295
                                </td>
296
            					<td class="detail">
297
            						#if($address.getName())
298
            							<b>$address.getName()</b><br />
299
                    				#end
300
                    				#if($address.getLine1())
301
            							<label>$address.getLine1() </label><br />
302
                    				#end	
303
                    				#if($address.getLine2() != "")
304
            							<label>$address.getLine2()</label><br />
305
                    				#end
306
                    				#if($address.getCity())	
307
            							<label>$address.getCity()</label><br />
308
                    				#end
309
                    				#if($address.getState())
310
            							<label>$address.getState()</label><br />
311
                    				#end
312
                    				#if($address.getPin())	
313
            							<label>Pin: $address.getPin()</label>
314
            						#end
315
                                    </p>
316
                    				#if($address.getPhone())
317
                                    <b>Phone: $address.getPhone() </b>
318
                    				#end
319
                                </td>
320
                            </tr>
321
            		#end
322
            		#if($shipAddressEmpty!=0)
323
                            <tr><td colspan="2">You do not an shipping address linked to your profile. Please add one.</td></tr>
324
            		#end
325
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
326
                        </tbody>
327
                    </table>
328
    			</div>
329
			</div>
861 vikas 330
 
3830 chandransh 331
		#if($shipAddressEmpty == 1)
332
			<input type="hidden" id="canProceedToPay" value="0" />
5831 anupam.sin 333
			<input type="hidden" id="reasonActionDisability" value="No address selected" />
3830 chandransh 334
		#elseif($locationServiceable == 0)
335
			<input type="hidden" id="canProceedToPay" value="0" />
336
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
3101 chandransh 337
		#else
3830 chandransh 338
			<input type="hidden" id="canProceedToPay" value="1" />
3101 chandransh 339
		#end
3830 chandransh 340
		<!-- Add Shipping Detail Start-->
341
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
342
			<table cellpadding="0" cellspacing="0">
343
				<thead>
344
					<tr class="header">
5803 anupam.sin 345
						#if($selectedTab == "HotSpot")
346
							<td id="newAddressFormHeading" colspan="2">Enter the address which you want printed on the bill</td>
347
						#else
348
							<td id="newAddressFormHeading" colspan="2">Enter the address where you want the items to be delivered</td>
349
						#end
3830 chandransh 350
					</tr>
351
                </thead>
352
				<tbody>
353
					<tr>
354
						<td>&nbsp;</td>
355
						<td class="instruction">All Fields are required</td>
356
                    </tr>
357
                <tr>
4136 rajveer 358
					<td class="label" align="right"><sup>*</sup>Name:</td>
3830 chandransh 359
					<td class="input">
4453 varun.gupt 360
						<input type="text" id="shipName" name="name" class="searchbox right" />
3830 chandransh 361
					</td>
362
				</tr>
363
                <tr>
4136 rajveer 364
					<td class="label" align="right"><sup>*</sup>Address Line 1:</td>
3830 chandransh 365
					<td class="input">
366
						<input type="text" id="shipAddress1" name="line1" class="searchbox right" />
367
					</td>
368
				</tr>
369
                <tr>
370
					<td class="label" align="right">Address Line 2:</td>
371
					<td class="input">
372
						<input type="text" id="shipAddress2" name="line2" class="searchbox right" />
373
					</td>
374
				</tr>
375
                <tr>
4136 rajveer 376
					<td class="label" align="right"><sup>*</sup>State</td>
3830 chandransh 377
					<td class="input">
378
						<select class="select_state" name="state" id="shipState">
379
						#include("templates/stateslist.vm")
380
						</select>
381
					</td>
382
				</tr>
383
                <tr>
4136 rajveer 384
					<td class="label" align="right"><sup>*</sup>City:</td>
3830 chandransh 385
					<td class="input">
386
						<input type="text" id="shipCity" name="city" class="searchbox"/>
387
					</td>
388
				</tr>
389
                <tr>
4136 rajveer 390
					<td class="label" align="right"><sup>*</sup>Pin Code:</td>
3830 chandransh 391
					<td class="input">
392
						<input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" />
393
					</td>
394
				</tr>
395
                <tr>
4136 rajveer 396
					<td class="label" align="right"><sup>*</sup>Phone:</td>
3830 chandransh 397
					<td class="input">
3831 rajveer 398
						<input type="text" id="shipPhone" name="phone" value="" class="searchbox right" />
3830 chandransh 399
					</td>
400
				</tr>
401
                <tr>
402
					<td colspan="2" align="center">
403
						<input type="hidden" name="action" value="add" />
404
						<input type="submit"  id="submitAddress" value="Save Address" class="new-button" />
405
						<a id="closeAddAddressForm">Clear</a>
406
					</td>
407
				</tr>
408
				<tr>
409
					<td>&nbsp;</td>
5716 anupam.sin 410
					<td class="instruction">This will be added to your list of addresses</td>
3830 chandransh 411
				</tr>
412
                </tbody>
413
			</table>
5831 anupam.sin 414
			#if($selectedTab == "HotSpot")
415
				<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="HotSpot" />
416
			#else
417
				<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
418
			#end
5716 anupam.sin 419
		</form>
420
	</div><!--End of main-right- Container-->