Subversion Repositories SmartDukaan

Rev

Rev 5716 | Rev 5751 | 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)
117
								#set($stringWithoutSpace = $zone.replace(" ", "_"))
118
								<option id="$stringWithoutSpace" value="$stringWithoutSpace" >$zone</option>
119
							#end
120
						</select>
121
					</div>
5716 anupam.sin 122
				</div>
123
    			<div id="store-address-container">
124
            		<table id="store-addresses" class="shipping-page-addresses right">
125
            			<tbody>
126
                    		#foreach($storeAddress in $storeAddresses)
127
                    			#set($storeAddressId = $storeAddress.getId())
128
 
129
                    			#if($defaultStoreId == $storeAddressId)
130
                    				#set($cssClassDefault = "default-address")
131
                    			#else
132
                    				#set($cssClassDefault = "")
133
                    			#end
5746 anupam.sin 134
                    				<tr id="tr_$storeAddress.getId()" class="address $cssClassDefault" zone="$storeAddress.getZone().replace(" ", "_")">
5716 anupam.sin 135
                    					<td align="center" valign="top" class="radio">
136
                    			#if($defaultStoreId == $storeAddressId)
137
            						<img src="/images/RadioButton_Selected.png" />
138
            						<input type="hidden" id="selectedPincode" value="$storeAddress.getPin()" />
139
        						#else
140
                    				<img id="selectStoreAddress_$storeAddressId" class="store-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Store for Shipment" />
141
                    						<form id="formChangeStoreAddressTo_$storeAddressId" method="post" action="/shipping">
142
												<input type="hidden" name="selectedTab" value="HotSpot" />
143
												<input type="hidden" name="addressid" value="$storeAddressId" />
144
												<input type="hidden" name="action" value="change" />
145
        									</form>
146
                    			#end
147
                                        </td>
148
                    					<td class="detail">
149
                    						#if($storeAddress.getName())
150
                    							<b>$storeAddress.getName()</b><br />
151
                            				#end
152
                            				#if($storeAddress.getLine1())
153
                    							<label>$storeAddress.getLine1() </label><br />
154
                            				#end	
155
                            				#if($storeAddress.getLine2() != "")
156
                    							<label>$storeAddress.getLine2()</label><br />
157
                            				#end
158
                            				#if($storeAddress.getCity())	
159
                    							<label>$storeAddress.getCity()</label><br />
160
                            				#end
161
                            				#if($storeAddress.getState())
162
                    							<label>$storeAddress.getState()</label><br />
163
                            				#end
164
                            				#if($storeAddress.getPin())	
165
                    							<label>Pin: $storeAddress.getPin()</label>
166
                    						#end
167
                                            </p>
168
                            				#if($storeAddress.getPhone())
169
                                            <b>Phone: $storeAddress.getPhone() </b>
170
                            				#end
171
                                        </td>
172
                                    </tr>
173
                    		#end
174
                        </tbody>
175
                    </table>
176
    			</div><!--End of store address container-->
177
			</div>
178
			<div id="billing-address-div" class=$billing-and-store-div-status>
179
    			<div id="billing-address-header" class="address-header label left">
180
    				<div id="billing-address-header-text" class="address-header-text">Select Billing Address</div>
181
    				<button id="addAddress" class="right">+ Add New Address</button>
182
    			</div>
183
    			<div id="billing-address-container">
184
    				<table id="billing-addresses" class="shipping-page-addresses right">
185
            			<thead></thead>
186
            			<tbody>
187
            		#set($shipAddressEmpty = 1)
188
            		#foreach($address in $addresses)
189
            			#set($shipAddressEmpty = 0)
190
            			#set($addressId = $address.getId())
191
 
192
            			#if($defaultid == $addressId)
193
            				#set($cssClassDefault = "default-address")
194
            			#else
195
            				#set($cssClassDefault = "")
196
            			#end
197
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
198
            					<td align="center" valign="top" class="radio">
199
            			#if($defaultid == $addressId)
200
            				#set($shipAddressEmpty = 0)
201
							<img id="selectAddress_$addressId" class="dummy-class" src="/images/RadioButton_Selected.png" title="Select this Address for Shipment" />
202
            						<!--<input type="hidden" id="selectedPincode" value="$address.getPin()" />-->
203
            			#else
204
            					    <img id="selectAddress_$addressId" class="billing-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
205
            						<!--<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$addressId">
206
									</form>-->
207
            			#end
208
                                </td>
209
            					<td class="detail">
210
            						#if($address.getName())
211
            							<b>$address.getName()</b><br />
212
                    				#end
213
                    				#if($address.getLine1())
214
            							<label>$address.getLine1() </label><br />
215
                    				#end	
216
                    				#if($address.getLine2() != "")
217
            							<label>$address.getLine2()</label><br />
218
                    				#end
219
                    				#if($address.getCity())	
220
            							<label>$address.getCity()</label><br />
221
                    				#end
222
                    				#if($address.getState())
223
            							<label>$address.getState()</label><br />
224
                    				#end
225
                    				#if($address.getPin())	
226
            							<label>Pin: $address.getPin()</label>
227
            						#end
228
                                    </p>
229
                    				#if($address.getPhone())
230
                                    <b>Phone: $address.getPhone() </b>
231
                    				#end
232
                                </td>
233
            					<!--<td class="delete">
234
            						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
235
								</td>-->
236
                            </tr>
237
            		#end
238
            		#if($shipAddressEmpty!=0)
239
                            <tr><td colspan="2">You do not have an address linked to your profile. Please add one.</td></tr>
240
            		#end
241
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
242
                        </tbody>
243
                    </table>
244
    			</div>
245
			</div>
246
			<div id="shipping-address-div" class=$shipping-div-status>
247
    			<div id="shipping-address-header" class="address-header label left">
248
    				<div id="shipping-address-header-text" class="address-header-text">Select Shipping Address</div>
249
    				<button id="addAddress" class="right">+ Add New Address</button>
250
    			</div>
251
    			<div id="shipping-address-container">
252
    				<table id="shipping-addresses" class="shipping-page-addresses right">
253
            			<thead></thead>
254
            			<tbody>
255
            		#set($shipAddressEmpty = 1)
256
            		#foreach($address in $addresses)
257
            			#set($shipAddressEmpty = 0)
258
            			#set($addressId = $address.getId())
259
 
260
            			#if($defaultid == $addressId)
261
            				#set($cssClassDefault = "default-address")
262
            			#else
263
            				#set($cssClassDefault = "")
264
            			#end
265
            				<tr id="tr_$address.getId()" class="address $cssClassDefault">
266
            					<td align="center" valign="top" class="radio">
267
            			#if($defaultid == $addressId)
268
            				#set($shipAddressEmpty = 0)
269
            						<img src="/images/RadioButton_Selected.png" />
270
            						<input type="hidden" id="selectedPincode" value="$address.getPin()" />
271
            			#else
272
            					    <img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
273
            						<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=myLocation&addressid=$addressId">
274
									</form>
275
            			#end
276
                                </td>
277
            					<td class="detail">
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
                            </tr>
302
            		#end
303
            		#if($shipAddressEmpty!=0)
304
                            <tr><td colspan="2">You do not an shipping address linked to your profile. Please add one.</td></tr>
305
            		#end
306
            			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
307
                        </tbody>
308
                    </table>
309
    			</div>
310
			</div>
861 vikas 311
 
3830 chandransh 312
		#if($shipAddressEmpty == 1)
313
			<input type="hidden" id="canProceedToPay" value="0" />
5716 anupam.sin 314
			<input type="hidden" id="reasonActionDisability" value="Please specify an address" />
3830 chandransh 315
		#elseif($locationServiceable == 0)
316
			<input type="hidden" id="canProceedToPay" value="0" />
317
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
3101 chandransh 318
		#else
3830 chandransh 319
			<input type="hidden" id="canProceedToPay" value="1" />
3101 chandransh 320
		#end
3830 chandransh 321
		<!-- Add Shipping Detail Start-->
322
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
323
			<table cellpadding="0" cellspacing="0">
324
				<thead>
325
					<tr class="header">
5716 anupam.sin 326
						<td id="newAddressFormHeading" colspan="2">Enter the address where you want the items to be delivered</td>
3830 chandransh 327
					</tr>
328
                </thead>
329
				<tbody>
330
					<tr>
331
						<td>&nbsp;</td>
332
						<td class="instruction">All Fields are required</td>
333
                    </tr>
334
                <tr>
4136 rajveer 335
					<td class="label" align="right"><sup>*</sup>Name:</td>
3830 chandransh 336
					<td class="input">
4453 varun.gupt 337
						<input type="text" id="shipName" name="name" class="searchbox right" />
3830 chandransh 338
					</td>
339
				</tr>
340
                <tr>
4136 rajveer 341
					<td class="label" align="right"><sup>*</sup>Address Line 1:</td>
3830 chandransh 342
					<td class="input">
343
						<input type="text" id="shipAddress1" name="line1" class="searchbox right" />
344
					</td>
345
				</tr>
346
                <tr>
347
					<td class="label" align="right">Address Line 2:</td>
348
					<td class="input">
349
						<input type="text" id="shipAddress2" name="line2" class="searchbox right" />
350
					</td>
351
				</tr>
352
                <tr>
4136 rajveer 353
					<td class="label" align="right"><sup>*</sup>State</td>
3830 chandransh 354
					<td class="input">
355
						<select class="select_state" name="state" id="shipState">
356
						#include("templates/stateslist.vm")
357
						</select>
358
					</td>
359
				</tr>
360
                <tr>
4136 rajveer 361
					<td class="label" align="right"><sup>*</sup>City:</td>
3830 chandransh 362
					<td class="input">
363
						<input type="text" id="shipCity" name="city" class="searchbox"/>
364
					</td>
365
				</tr>
366
                <tr>
4136 rajveer 367
					<td class="label" align="right"><sup>*</sup>Pin Code:</td>
3830 chandransh 368
					<td class="input">
369
						<input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" />
370
					</td>
371
				</tr>
372
                <tr>
4136 rajveer 373
					<td class="label" align="right"><sup>*</sup>Phone:</td>
3830 chandransh 374
					<td class="input">
3831 rajveer 375
						<input type="text" id="shipPhone" name="phone" value="" class="searchbox right" />
3830 chandransh 376
					</td>
377
				</tr>
378
                <tr>
379
					<td colspan="2" align="center">
380
						<input type="hidden" name="action" value="add" />
381
						<input type="submit"  id="submitAddress" value="Save Address" class="new-button" />
382
						<a id="closeAddAddressForm">Clear</a>
383
					</td>
384
				</tr>
385
				<tr>
386
					<td>&nbsp;</td>
5716 anupam.sin 387
					<td class="instruction">This will be added to your list of addresses</td>
3830 chandransh 388
				</tr>
389
                </tbody>
390
			</table>
5716 anupam.sin 391
			<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
392
		</form>
393
	</div><!--End of main-right- Container-->