Subversion Repositories SmartDukaan

Rev

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