Subversion Repositories SmartDukaan

Rev

Rev 5040 | Rev 5574 | 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
 
5572 anupam.sin 8
	#if($defaultStoreAddressId)
9
		#set($defaultStoreId = $Integer.parseInt($defaultStoreAddressId))
10
	#else
11
		#set($defaultStoreId = 1)
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">
5572 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
 
5572 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>
3830 chandransh 110
 
5572 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 your nearest HotSpot store</div>
114
				</div>
115
    			<div id="store-address-container">
116
            		<table id="store-addresses" class="shipping-page-addresses right">
117
            			<thead></thead>
118
            			<tbody>
119
                    		#foreach($storeAddress in $storeAddresses)
120
                    			#set($storeAddressId = $storeAddress.getId())
121
 
122
                    			#if($defaultStoreId == $storeAddressId)
123
                    				#set($cssClassDefault = "default-address")
124
                    			#else
125
                    				#set($cssClassDefault = "")
126
                    			#end
127
                    				<tr id="tr_$storeAddress.getId()" class="address $cssClassDefault">
128
                    					<td align="center" valign="top" class="radio">
129
                    			#if($defaultStoreId == $storeAddressId)
130
                    				#set($shipAddressEmpty = 0)
131
            						<img src="/images/RadioButton_Selected.png" />
132
            						<input type="hidden" id="selectedPincode" value="$storeAddress.getPin()" />
133
        						#else
134
                    				<img id="selectStoreAddress_$storeAddressId" class="store-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Store for Shipment" />
135
                    						<form id="formChangeStoreAddressTo_$storeAddressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$storeAddressId">
136
        									</form>
137
                    			#end
138
                                        </td>
139
                    					<td class="detail">
140
                    						#if($storeAddress.getName())
141
                    							<b>$storeAddress.getName()</b><br />
142
                            				#end
143
                            				#if($storeAddress.getLine1())
144
                    							<label>$storeAddress.getLine1() </label><br />
145
                            				#end	
146
                            				#if($storeAddress.getLine2() != "")
147
                    							<label>$storeAddress.getLine2()</label><br />
148
                            				#end
149
                            				#if($storeAddress.getCity())	
150
                    							<label>$storeAddress.getCity()</label><br />
151
                            				#end
152
                            				#if($storeAddress.getState())
153
                    							<label>$storeAddress.getState()</label><br />
154
                            				#end
155
                            				#if($storeAddress.getPin())	
156
                    							<label>Pin: $storeAddress.getPin()</label>
157
                    						#end
158
                                            </p>
159
                            				#if($storeAddress.getPhone())
160
                                            <b>Phone: $storeAddress.getPhone() </b>
161
                            				#end
162
                                        </td>
163
                                    </tr>
164
                    		#end
165
                    		<!--#if($shipAddressEmpty!=0)
166
                                    <tr><td colspan="2">You do not have a shipping address linked to your profile. Please add one.</td></tr>
167
                    		#end
168
                    			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">-->
169
                        </tbody>
170
                    </table>
171
    			</div><!--End of store address container-->
172
			</div>
173
			<div id="billing-address-div" class=$billing-and-store-div-status>
174
    			<div id="billing-address-header" class="address-header label left">
175
    				<div id="billing-address-header-text" class="address-header-text">Select Billing Address</div>
176
    				<button id="addAddress" class="right">+ Add New Address</button>
177
    			</div>
178
    			<div id="billing-address-container">
179
    				<table id="billing-addresses" class="shipping-page-addresses right">
180
            			<thead></thead>
181
            			<tbody>
182
            		#set($shipAddressEmpty = 1)
183
            		#foreach($address in $addresses)
184
            			#set($shipAddressEmpty = 0)
185
            			#set($addressId = $address.getId())
186
 
187
            			#if($defaultid == $addressId)
188
            				#set($cssClassDefault = "default-address")
189
            			#else
190
            				#set($cssClassDefault = "")
191
            			#end
192
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
193
            					<td align="center" valign="top" class="radio">
194
            			#if($defaultid == $addressId)
195
            				#set($shipAddressEmpty = 0)
196
							<img id="selectAddress_$addressId" class="dummy-class" src="/images/RadioButton_Selected.png" title="Select this Address for Shipment" />
197
            						<img src= />
198
            						<!--<input type="hidden" id="selectedPincode" value="$address.getPin()" />-->
199
            			#else
200
            					    <img id="selectAddress_$addressId" class="billing-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
201
            						<!--<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$addressId">
202
									</form>-->
203
            			#end
204
                                </td>
205
            					<td class="detail">
206
            						<b>PRINT BILL FOR THIS ADDRESS</b>
207
            						<p>
208
            						#if($address.getName())
209
            							<b>$address.getName()</b><br />
210
                    				#end
211
                    				#if($address.getLine1())
212
            							<label>$address.getLine1() </label><br />
213
                    				#end	
214
                    				#if($address.getLine2() != "")
215
            							<label>$address.getLine2()</label><br />
216
                    				#end
217
                    				#if($address.getCity())	
218
            							<label>$address.getCity()</label><br />
219
                    				#end
220
                    				#if($address.getState())
221
            							<label>$address.getState()</label><br />
222
                    				#end
223
                    				#if($address.getPin())	
224
            							<label>Pin: $address.getPin()</label>
225
            						#end
226
                                    </p>
227
                    				#if($address.getPhone())
228
                                    <b>Phone: $address.getPhone() </b>
229
                    				#end
230
                                </td>
231
            					<!--<td class="delete">
232
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
233
								</td>-->
234
                            </tr>
235
            		#end
236
            		#if($shipAddressEmpty!=0)
237
                            <tr><td colspan="2">You do not have an address linked to your profile. Please add one.</td></tr>
238
            		#end
239
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
240
                        </tbody>
241
                    </table>
242
    			</div>
243
			</div>
244
			<div id="shipping-address-div" class=$shipping-div-status>
245
    			<div id="shipping-address-header" class="address-header label left">
246
    				<div id="shipping-address-header-text" class="address-header-text">Select Shipping Address</div>
247
    				<button id="addAddress" class="right">+ Add New Address</button>
248
    			</div>
249
    			<div id="shipping-address-container">
250
    				<table id="shipping-addresses" class="shipping-page-addresses right">
251
            			<thead></thead>
252
            			<tbody>
253
            		#set($shipAddressEmpty = 1)
254
            		#foreach($address in $addresses)
255
            			#set($shipAddressEmpty = 0)
256
            			#set($addressId = $address.getId())
257
 
258
            			#if($defaultid == $addressId)
259
            				#set($cssClassDefault = "default-address")
260
            			#else
261
            				#set($cssClassDefault = "")
262
            			#end
263
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
264
            					<td align="center" valign="top" class="radio">
265
            			#if($defaultid == $addressId)
266
            				#set($shipAddressEmpty = 0)
267
            						<img src="/images/RadioButton_Selected.png" />
268
            						<input type="hidden" id="selectedPincode" value="$address.getPin()" />
269
            			#else
270
            					    <img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
271
            						<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=myLocation&addressid=$addressId">
272
									</form>
273
            			#end
274
                                </td>
275
            					<td class="detail">
276
            						<b>SHIP ITEMS TO THIS ADDRESS</b>
277
            						<p>
278
            						#if($address.getName())
279
            							<b>$address.getName()</b><br />
280
                    				#end
281
                    				#if($address.getLine1())
282
            							<label>$address.getLine1() </label><br />
283
                    				#end	
284
                    				#if($address.getLine2() != "")
285
            							<label>$address.getLine2()</label><br />
286
                    				#end
287
                    				#if($address.getCity())	
288
            							<label>$address.getCity()</label><br />
289
                    				#end
290
                    				#if($address.getState())
291
            							<label>$address.getState()</label><br />
292
                    				#end
293
                    				#if($address.getPin())	
294
            							<label>Pin: $address.getPin()</label>
295
            						#end
296
                                    </p>
297
                    				#if($address.getPhone())
298
                                    <b>Phone: $address.getPhone() </b>
299
                    				#end
300
                                </td>
301
            					<td class="delete">
302
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
303
            					</td>
304
                            </tr>
305
            		#end
306
            		#if($shipAddressEmpty!=0)
307
                            <tr><td colspan="2">You do not an shipping address linked to your profile. Please add one.</td></tr>
308
            		#end
309
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
310
                        </tbody>
311
                    </table>
312
    			</div>
313
			</div>
314
		</div><!--End of main Container-->
861 vikas 315
 
3830 chandransh 316
		#if($shipAddressEmpty == 1)
317
			<input type="hidden" id="canProceedToPay" value="0" />
5572 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">
5572 anupam.sin 330
						<td 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>
5572 anupam.sin 391
					<td class="instruction">This will be added to your list of addresses</td>
3830 chandransh 392
				</tr>
393
                </tbody>
394
			</table>
5572 anupam.sin 395
			<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
3830 chandransh 396
		</form>