Subversion Repositories SmartDukaan

Rev

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