Subversion Repositories SmartDukaan

Rev

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

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