Subversion Repositories SmartDukaan

Rev

Rev 5607 | Rev 5716 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5607 Rev 5614
Line 3... Line 3...
3
		#set($defaultid = $Integer.parseInt($defaultAddressId))
3
		#set($defaultid = $Integer.parseInt($defaultAddressId))
4
	#else
4
	#else
5
		#set($defaultid = 0)
5
		#set($defaultid = 0)
6
	#end
6
	#end
7
	
7
	
8
	#if($defaultStoreAddressId && $defaultStoreAddressId != 0)
-
 
9
		#set($defaultStoreId = $Integer.parseInt($defaultStoreAddressId))
-
 
10
	#else
-
 
11
		#set($defaultStoreId = 1)
-
 
12
	#end
-
 
13
	
-
 
14
	#if(!$errorMsg.isEmpty())
8
	#if(!$errorMsg.isEmpty())
15
		<div id="messageError">
9
		<div id="messageError">
16
			<span></span>
10
			<span></span>
17
			<p>$errorMsg <br/></p>
11
			<p>$errorMsg <br/></p>
18
		</div>
12
		</div>
Line 23... Line 17...
23
				We accept all <b>credit / debit cards</b> and <b>netbanking facilities</b>. You can also pay <b>Cash on Delivery</b>.
17
				We accept all <b>credit / debit cards</b> and <b>netbanking facilities</b>. You can also pay <b>Cash on Delivery</b>.
24
			</div>
18
			</div>
25
		</div>
19
		</div>
26
		<form id="formProceedToPay" action="/proceed-to-pay" method="post">
20
		<form id="formProceedToPay" action="/proceed-to-pay" method="post">
27
			<input type="hidden" value="$defaultid" name="addressid" id="addressid">
21
			<input type="hidden" value="$defaultid" name="addressid" id="addressid">
28
			<input type="hidden" name="deliveryLocation" value="$selectedTab" id="tabSelector">
-
 
29
			<input type="hidden" name="hotSpotAddressId" value="$defaultStoreId" id="hotSpotAddressId">
-
 
30
		</form>
22
		</form>
31
		<div id="proceedToPay" class="cartflow-main-action-button right">PROCEED TO PAYMENT &gt;</div>
23
		<div id="proceedToPay" class="cartflow-main-action-button right">PROCEED TO PAYMENT &gt;</div>
32
			
24
			
33
		#if($items)
25
		#if($items)
34
		<div class="cart-container left">
26
		<div class="cart-container left">
Line 90... Line 82...
90
				#end
82
				#end
91
			</table>
83
			</table>
92
        </div>
84
        </div>
93
		#end
85
		#end
94
		
86
		
95
		<div id="main-right-container">
87
		<table id="addresses" class="right" cellspacing="0" cellpadding="2">
96
			#set($myLocation-tab-status = "selected-tab")
88
			<thead>
97
			#set($hotSpot-tab-status = "unselected-tab")
89
				<tr>
98
			#set($shipping-div-status = "")
90
					<td colspan="3">
99
			#set($billing-and-store-div-status = "hidden-div")
91
						<div class="label left">Select Shipping Address</div>
100
			#if($selectedTab == "HotSpot")
-
 
101
				#set($myLocation-tab-status = "unselected-tab")
92
						<button id="addAddress" class="new-button right">+ Add New Address</button>
102
				#set($hotSpot-tab-status = "selected-tab")
93
                    </td>
103
				#set($shipping-div-status = "hidden-div")
94
                </tr>
104
				#set($billing-and-store-div-status = "")
95
            </thead>
105
			#end
96
			<tbody>
106
			<div id="tab-container">
97
		#set($shipAddressEmpty = 1)
107
    			<div id="tab-left" class=$myLocation-tab-status>DELIVER TO MY ADDRESS</div>
98
		#foreach($address in $addresses)
108
    			<div id="tab-right" class=$hotSpot-tab-status>PICK FROM STORE</div>
99
			#set($shipAddressEmpty = 0)
109
			</div>
100
			#set($addressId = $address.getId())
110
			
101
			
111
			<div id="store-address-div" class=$billing-and-store-div-status>
102
			#if($defaultid == $addressId)
112
    			<div id="hotspot-address-heading" class="label">
103
				#set($cssClassDefault = "default-address")
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>
104
			#else
114
				</div>
105
				#set($cssClassDefault = "")
115
    			<div id="store-address-container">
106
			#end
116
            		<table id="store-addresses" class="shipping-page-addresses right">
107
				<tr id="tr_$address.getId()" class="address $cssClassDefault">
117
            			<thead></thead>
108
					<td align="center" valign="top" class="radio">
118
            			<tbody>
109
			#if($defaultid == $addressId)
119
                    		#foreach($storeAddress in $storeAddresses)
110
				#set($shipAddressEmpty = 0)
120
                    			#set($storeAddressId = $storeAddress.getId())
111
						<img src="/images/RadioButton_Selected.png" />
121
                    			
112
						<input type="hidden" id="selectedPincode" value="$address.getPin()" />
122
                    			#if($defaultStoreId == $storeAddressId)
113
			#else
123
                    				#set($cssClassDefault = "default-address")
114
					    <img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
124
                    			#else
115
						<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&addressid=$addressId"></form>
125
                    				#set($cssClassDefault = "")
116
			#end
126
                    			#end
117
                    </td>
127
                    				<tr id="tr_$storeAddress.getId()" class="address $cssClassDefault">
118
					<td class="detail">
128
                    					<td align="center" valign="top" class="radio">
119
						<b>SHIP ITEMS TO THIS ADDRESS</b>
129
                    			#if($defaultStoreId == $storeAddressId)
120
						<p>
130
            						<img src="/images/RadioButton_Selected.png" />
121
						#if($address.getName())
131
            						<input type="hidden" id="selectedPincode" value="$storeAddress.getPin()" />
122
							<b>$address.getName()</b><br />
132
        						#else
123
        				#end
133
                    				<img id="selectStoreAddress_$storeAddressId" class="store-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Store for Shipment" />
124
        				#if($address.getLine1())
134
                    						<form id="formChangeStoreAddressTo_$storeAddressId" method="post" action="/shipping">
125
							<label>$address.getLine1() </label><br />
135
												<input type="hidden" name="selectedTab" value="HotSpot" />
126
        				#end	
136
												<input type="hidden" name="addressid" value="$storeAddressId" />
127
        				#if($address.getLine2() != "")
137
												<input type="hidden" name="action" value="change" />
128
							<label>$address.getLine2()</label><br />
138
        									</form>
129
        				#end
139
                    			#end
130
        				#if($address.getCity())	
140
                                        </td>
131
							<label>$address.getCity()</label><br />
141
                    					<td class="detail">
132
        				#end
142
                    						#if($storeAddress.getName())
133
        				#if($address.getState())
143
                    							<b>$storeAddress.getName()</b><br />
134
							<label>$address.getState()</label><br />
144
                            				#end
135
        				#end
145
                            				#if($storeAddress.getLine1())
136
        				#if($address.getPin())	
146
                    							<label>$storeAddress.getLine1() </label><br />
137
							<label>Pin: $address.getPin()</label>
147
                            				#end	
138
						#end
148
                            				#if($storeAddress.getLine2() != "")
139
                        </p>
149
                    							<label>$storeAddress.getLine2()</label><br />
140
        				#if($address.getPhone())
150
                            				#end
141
                        <b>Phone: $address.getPhone() </b>
151
                            				#if($storeAddress.getCity())	
142
        				#end
152
                    							<label>$storeAddress.getCity()</label><br />
143
                    </td>
153
                            				#end
144
					<td class="delete">
154
                            				#if($storeAddress.getState())
145
						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
155
                    							<label>$storeAddress.getState()</label><br />
146
					</td>
156
                            				#end
147
                </tr>
157
                            				#if($storeAddress.getPin())	
148
		#end
158
                    							<label>Pin: $storeAddress.getPin()</label>
149
		#if($shipAddressEmpty!=0)
159
                    						#end
150
                <tr><td colspan="2">You do not have a shipping address linked to your profile. Please add one.</td></tr>
160
                                            </p>
151
		#end
161
                            				#if($storeAddress.getPhone())
152
			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
162
                                            <b>Phone: $storeAddress.getPhone() </b>
153
            </tbody>
163
                            				#end
154
        </table>
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>
-
 
304
		
155
		
305
		#if($shipAddressEmpty == 1)
156
		#if($shipAddressEmpty == 1)
306
			<input type="hidden" id="canProceedToPay" value="0" />
157
			<input type="hidden" id="canProceedToPay" value="0" />
307
			<input type="hidden" id="reasonActionDisability" value="Please specify an address" />
158
			<input type="hidden" id="reasonActionDisability" value="Please specify a shipping address" />
308
		#elseif($locationServiceable == 0)
159
		#elseif($locationServiceable == 0)
309
			<input type="hidden" id="canProceedToPay" value="0" />
160
			<input type="hidden" id="canProceedToPay" value="0" />
310
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
161
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
311
		#else
162
		#else
312
			<input type="hidden" id="canProceedToPay" value="1" />
163
			<input type="hidden" id="canProceedToPay" value="1" />
Line 314... Line 165...
314
		<!-- Add Shipping Detail Start-->
165
		<!-- Add Shipping Detail Start-->
315
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
166
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
316
			<table cellpadding="0" cellspacing="0">
167
			<table cellpadding="0" cellspacing="0">
317
				<thead>
168
				<thead>
318
					<tr class="header">
169
					<tr class="header">
319
						<td id="newAddressFormHeading" colspan="2">Enter the address where you want the items to be delivered</td>
170
						<td colspan="2">Enter the shipping address where you want the items to be delivered</td>
320
					</tr>
171
					</tr>
321
                </thead>
172
                </thead>
322
				<tbody>
173
				<tbody>
323
					<tr>
174
					<tr>
324
						<td>&nbsp;</td>
175
						<td>&nbsp;</td>
Line 375... Line 226...
375
						<a id="closeAddAddressForm">Clear</a>
226
						<a id="closeAddAddressForm">Clear</a>
376
					</td>
227
					</td>
377
				</tr>
228
				</tr>
378
				<tr>
229
				<tr>
379
					<td>&nbsp;</td>
230
					<td>&nbsp;</td>
380
					<td class="instruction">This will be added to your list of addresses</td>
231
					<td class="instruction">This will be added to your list of shipping addresses</td>
381
				</tr>
232
				</tr>
382
                </tbody>
233
                </tbody>
383
			</table>
234
			</table>
384
			<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
-
 
385
		</form>
235
		</form>
386
	</div><!--End of main-right- Container-->
-
 
387
236