Subversion Repositories SmartDukaan

Rev

Rev 5572 | Rev 5594 | 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
            						<!--<input type="hidden" id="selectedPincode" value="$address.getPin()" />-->
198
            			#else
199
            					    <img id="selectAddress_$addressId" class="billing-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
200
            						<!--<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$addressId">
201
									</form>-->
202
            			#end
203
                                </td>
204
            					<td class="detail">
205
            						<b>PRINT BILL FOR THIS ADDRESS</b>
206
            						<p>
207
            						#if($address.getName())
208
            							<b>$address.getName()</b><br />
209
                    				#end
210
                    				#if($address.getLine1())
211
            							<label>$address.getLine1() </label><br />
212
                    				#end	
213
                    				#if($address.getLine2() != "")
214
            							<label>$address.getLine2()</label><br />
215
                    				#end
216
                    				#if($address.getCity())	
217
            							<label>$address.getCity()</label><br />
218
                    				#end
219
                    				#if($address.getState())
220
            							<label>$address.getState()</label><br />
221
                    				#end
222
                    				#if($address.getPin())	
223
            							<label>Pin: $address.getPin()</label>
224
            						#end
225
                                    </p>
226
                    				#if($address.getPhone())
227
                                    <b>Phone: $address.getPhone() </b>
228
                    				#end
229
                                </td>
230
            					<!--<td class="delete">
231
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
232
								</td>-->
233
                            </tr>
234
            		#end
235
            		#if($shipAddressEmpty!=0)
236
                            <tr><td colspan="2">You do not have an address linked to your profile. Please add one.</td></tr>
237
            		#end
238
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
239
                        </tbody>
240
                    </table>
241
    			</div>
242
			</div>
243
			<div id="shipping-address-div" class=$shipping-div-status>
244
    			<div id="shipping-address-header" class="address-header label left">
245
    				<div id="shipping-address-header-text" class="address-header-text">Select Shipping Address</div>
246
    				<button id="addAddress" class="right">+ Add New Address</button>
247
    			</div>
248
    			<div id="shipping-address-container">
249
    				<table id="shipping-addresses" class="shipping-page-addresses right">
250
            			<thead></thead>
251
            			<tbody>
252
            		#set($shipAddressEmpty = 1)
253
            		#foreach($address in $addresses)
254
            			#set($shipAddressEmpty = 0)
255
            			#set($addressId = $address.getId())
256
 
257
            			#if($defaultid == $addressId)
258
            				#set($cssClassDefault = "default-address")
259
            			#else
260
            				#set($cssClassDefault = "")
261
            			#end
262
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
263
            					<td align="center" valign="top" class="radio">
264
            			#if($defaultid == $addressId)
265
            				#set($shipAddressEmpty = 0)
266
            						<img src="/images/RadioButton_Selected.png" />
267
            						<input type="hidden" id="selectedPincode" value="$address.getPin()" />
268
            			#else
269
            					    <img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
270
            						<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=myLocation&addressid=$addressId">
271
									</form>
272
            			#end
273
                                </td>
274
            					<td class="detail">
275
            						<b>SHIP ITEMS TO THIS ADDRESS</b>
276
            						<p>
277
            						#if($address.getName())
278
            							<b>$address.getName()</b><br />
279
                    				#end
280
                    				#if($address.getLine1())
281
            							<label>$address.getLine1() </label><br />
282
                    				#end	
283
                    				#if($address.getLine2() != "")
284
            							<label>$address.getLine2()</label><br />
285
                    				#end
286
                    				#if($address.getCity())	
287
            							<label>$address.getCity()</label><br />
288
                    				#end
289
                    				#if($address.getState())
290
            							<label>$address.getState()</label><br />
291
                    				#end
292
                    				#if($address.getPin())	
293
            							<label>Pin: $address.getPin()</label>
294
            						#end
295
                                    </p>
296
                    				#if($address.getPhone())
297
                                    <b>Phone: $address.getPhone() </b>
298
                    				#end
299
                                </td>
300
            					<td class="delete">
301
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
302
            					</td>
303
                            </tr>
304
            		#end
305
            		#if($shipAddressEmpty!=0)
306
                            <tr><td colspan="2">You do not an shipping address linked to your profile. Please add one.</td></tr>
307
            		#end
308
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
309
                        </tbody>
310
                    </table>
311
    			</div>
312
			</div>
313
		</div><!--End of main Container-->
861 vikas 314
 
3830 chandransh 315
		#if($shipAddressEmpty == 1)
316
			<input type="hidden" id="canProceedToPay" value="0" />
5572 anupam.sin 317
			<input type="hidden" id="reasonActionDisability" value="Please specify an address" />
3830 chandransh 318
		#elseif($locationServiceable == 0)
319
			<input type="hidden" id="canProceedToPay" value="0" />
320
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
3101 chandransh 321
		#else
3830 chandransh 322
			<input type="hidden" id="canProceedToPay" value="1" />
3101 chandransh 323
		#end
3830 chandransh 324
		<!-- Add Shipping Detail Start-->
325
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
326
			<table cellpadding="0" cellspacing="0">
327
				<thead>
328
					<tr class="header">
5572 anupam.sin 329
						<td colspan="2">Enter the address where you want the items to be delivered</td>
3830 chandransh 330
					</tr>
331
                </thead>
332
				<tbody>
333
					<tr>
334
						<td>&nbsp;</td>
335
						<td class="instruction">All Fields are required</td>
336
                    </tr>
337
                <tr>
4136 rajveer 338
					<td class="label" align="right"><sup>*</sup>Name:</td>
3830 chandransh 339
					<td class="input">
4453 varun.gupt 340
						<input type="text" id="shipName" name="name" class="searchbox right" />
3830 chandransh 341
					</td>
342
				</tr>
343
                <tr>
4136 rajveer 344
					<td class="label" align="right"><sup>*</sup>Address Line 1:</td>
3830 chandransh 345
					<td class="input">
346
						<input type="text" id="shipAddress1" name="line1" class="searchbox right" />
347
					</td>
348
				</tr>
349
                <tr>
350
					<td class="label" align="right">Address Line 2:</td>
351
					<td class="input">
352
						<input type="text" id="shipAddress2" name="line2" class="searchbox right" />
353
					</td>
354
				</tr>
355
                <tr>
4136 rajveer 356
					<td class="label" align="right"><sup>*</sup>State</td>
3830 chandransh 357
					<td class="input">
358
						<select class="select_state" name="state" id="shipState">
359
						#include("templates/stateslist.vm")
360
						</select>
361
					</td>
362
				</tr>
363
                <tr>
4136 rajveer 364
					<td class="label" align="right"><sup>*</sup>City:</td>
3830 chandransh 365
					<td class="input">
366
						<input type="text" id="shipCity" name="city" class="searchbox"/>
367
					</td>
368
				</tr>
369
                <tr>
4136 rajveer 370
					<td class="label" align="right"><sup>*</sup>Pin Code:</td>
3830 chandransh 371
					<td class="input">
372
						<input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" />
373
					</td>
374
				</tr>
375
                <tr>
4136 rajveer 376
					<td class="label" align="right"><sup>*</sup>Phone:</td>
3830 chandransh 377
					<td class="input">
3831 rajveer 378
						<input type="text" id="shipPhone" name="phone" value="" class="searchbox right" />
3830 chandransh 379
					</td>
380
				</tr>
381
                <tr>
382
					<td colspan="2" align="center">
383
						<input type="hidden" name="action" value="add" />
384
						<input type="submit"  id="submitAddress" value="Save Address" class="new-button" />
385
						<a id="closeAddAddressForm">Clear</a>
386
					</td>
387
				</tr>
388
				<tr>
389
					<td>&nbsp;</td>
5572 anupam.sin 390
					<td class="instruction">This will be added to your list of addresses</td>
3830 chandransh 391
				</tr>
392
                </tbody>
393
			</table>
5572 anupam.sin 394
			<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
3830 chandransh 395
		</form>