| 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)
|
| - |
|
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 ></div>
|
31 |
<div id="proceedToPay" class="cartflow-main-action-button right">PROCEED TO PAYMENT ></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"> 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>
|
| 117 |
</td>
|
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 |
<img src= />
|
| - |
|
198 |
<!--<input type="hidden" id="selectedPincode" value="$address.getPin()" />-->
|
| - |
|
199 |
#else
|
| - |
|
200 |
<img id="selectAddress_$addressId" class="billing-address-selector-button" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
|
| - |
|
201 |
<!--<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=HotSpot&addressid=$addressId">
|
| - |
|
202 |
</form>-->
|
| - |
|
203 |
#end
|
| - |
|
204 |
</td>
|
| 118 |
<td class="detail">
|
205 |
<td class="detail">
|
| 119 |
<b>SHIP ITEMS TO THIS ADDRESS</b>
|
206 |
<b>PRINT BILL FOR THIS ADDRESS</b>
|
| 120 |
<p>
|
207 |
<p>
|
| 121 |
#if($address.getName())
|
208 |
#if($address.getName())
|
| 122 |
<b>$address.getName()</b><br />
|
209 |
<b>$address.getName()</b><br />
|
| 123 |
#end
|
210 |
#end
|
| 124 |
#if($address.getLine1())
|
211 |
#if($address.getLine1())
|
| 125 |
<label>$address.getLine1() </label><br />
|
212 |
<label>$address.getLine1() </label><br />
|
| 126 |
#end
|
213 |
#end
|
| 127 |
#if($address.getLine2() != "")
|
214 |
#if($address.getLine2() != "")
|
| 128 |
<label>$address.getLine2()</label><br />
|
215 |
<label>$address.getLine2()</label><br />
|
| 129 |
#end
|
216 |
#end
|
| 130 |
#if($address.getCity())
|
217 |
#if($address.getCity())
|
| 131 |
<label>$address.getCity()</label><br />
|
218 |
<label>$address.getCity()</label><br />
|
| 132 |
#end
|
219 |
#end
|
| 133 |
#if($address.getState())
|
220 |
#if($address.getState())
|
| 134 |
<label>$address.getState()</label><br />
|
221 |
<label>$address.getState()</label><br />
|
| 135 |
#end
|
222 |
#end
|
| 136 |
#if($address.getPin())
|
223 |
#if($address.getPin())
|
| 137 |
<label>Pin: $address.getPin()</label>
|
224 |
<label>Pin: $address.getPin()</label>
|
| 138 |
#end
|
225 |
#end
|
| 139 |
</p>
|
226 |
</p>
|
| 140 |
#if($address.getPhone())
|
227 |
#if($address.getPhone())
|
| 141 |
<b>Phone: $address.getPhone() </b>
|
228 |
<b>Phone: $address.getPhone() </b>
|
| - |
|
229 |
#end
|
| - |
|
230 |
</td>
|
| - |
|
231 |
<!--<td class="delete">
|
| - |
|
232 |
<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
|
| - |
|
233 |
</td>-->
|
| - |
|
234 |
</tr>
|
| - |
|
235 |
#end
|
| - |
|
236 |
#if($shipAddressEmpty!=0)
|
| - |
|
237 |
<tr><td colspan="2">You do not have an address linked to your profile. Please add one.</td></tr>
|
| 142 |
#end
|
238 |
#end
|
| - |
|
239 |
<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
|
| - |
|
240 |
</tbody>
|
| 143 |
</td>
|
241 |
</table>
|
| - |
|
242 |
</div>
|
| - |
|
243 |
</div>
|
| - |
|
244 |
<div id="shipping-address-div" class=$shipping-div-status>
|
| - |
|
245 |
<div id="shipping-address-header" class="address-header label left">
|
| - |
|
246 |
<div id="shipping-address-header-text" class="address-header-text">Select Shipping Address</div>
|
| - |
|
247 |
<button id="addAddress" class="right">+ Add New Address</button>
|
| - |
|
248 |
</div>
|
| - |
|
249 |
<div id="shipping-address-container">
|
| - |
|
250 |
<table id="shipping-addresses" class="shipping-page-addresses right">
|
| - |
|
251 |
<thead></thead>
|
| - |
|
252 |
<tbody>
|
| - |
|
253 |
#set($shipAddressEmpty = 1)
|
| - |
|
254 |
#foreach($address in $addresses)
|
| - |
|
255 |
#set($shipAddressEmpty = 0)
|
| - |
|
256 |
#set($addressId = $address.getId())
|
| - |
|
257 |
|
| - |
|
258 |
#if($defaultid == $addressId)
|
| - |
|
259 |
#set($cssClassDefault = "default-address")
|
| - |
|
260 |
#else
|
| - |
|
261 |
#set($cssClassDefault = "")
|
| - |
|
262 |
#end
|
| - |
|
263 |
<tr id="tr_$address.getId()" class="address $cssClassDefault">
|
| - |
|
264 |
<td align="center" valign="top" class="radio">
|
| - |
|
265 |
#if($defaultid == $addressId)
|
| - |
|
266 |
#set($shipAddressEmpty = 0)
|
| - |
|
267 |
<img src="/images/RadioButton_Selected.png" />
|
| - |
|
268 |
<input type="hidden" id="selectedPincode" value="$address.getPin()" />
|
| - |
|
269 |
#else
|
| - |
|
270 |
<img id="selectAddress_$addressId" class="button-address-select" src="/images/RadioButton_Unselected.png" title="Select this Address for Shipment" />
|
| - |
|
271 |
<form id="formChangeAddressTo_$addressId" method="post" action="/shipping?action=change&selectedTab=myLocation&addressid=$addressId">
|
| - |
|
272 |
</form>
|
| - |
|
273 |
#end
|
| - |
|
274 |
</td>
|
| - |
|
275 |
<td class="detail">
|
| - |
|
276 |
<b>SHIP ITEMS TO THIS ADDRESS</b>
|
| - |
|
277 |
<p>
|
| - |
|
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>
|
| 144 |
<td class="delete">
|
301 |
<td class="delete">
|
| 145 |
<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
|
302 |
<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
|
| 146 |
</td>
|
303 |
</td>
|
| 147 |
</tr>
|
304 |
</tr>
|
| 148 |
#end
|
305 |
#end
|
| 149 |
#if($shipAddressEmpty!=0)
|
306 |
#if($shipAddressEmpty!=0)
|
| 150 |
<tr><td colspan="2">You do not have a shipping address linked to your profile. Please add one.</td></tr>
|
307 |
<tr><td colspan="2">You do not an shipping address linked to your profile. Please add one.</td></tr>
|
| 151 |
#end
|
308 |
#end
|
| 152 |
<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
|
309 |
<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
|
| 153 |
</tbody>
|
310 |
</tbody>
|
| 154 |
</table>
|
311 |
</table>
|
| - |
|
312 |
</div>
|
| - |
|
313 |
</div>
|
| - |
|
314 |
</div><!--End of main Container-->
|
| 155 |
|
315 |
|
| 156 |
#if($shipAddressEmpty == 1)
|
316 |
#if($shipAddressEmpty == 1)
|
| 157 |
<input type="hidden" id="canProceedToPay" value="0" />
|
317 |
<input type="hidden" id="canProceedToPay" value="0" />
|
| 158 |
<input type="hidden" id="reasonActionDisability" value="Please specify a shipping address" />
|
318 |
<input type="hidden" id="reasonActionDisability" value="Please specify an address" />
|
| 159 |
#elseif($locationServiceable == 0)
|
319 |
#elseif($locationServiceable == 0)
|
| 160 |
<input type="hidden" id="canProceedToPay" value="0" />
|
320 |
<input type="hidden" id="canProceedToPay" value="0" />
|
| 161 |
<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
|
321 |
<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
|
| 162 |
#else
|
322 |
#else
|
| 163 |
<input type="hidden" id="canProceedToPay" value="1" />
|
323 |
<input type="hidden" id="canProceedToPay" value="1" />
|
| Line 165... |
Line 325... |
| 165 |
<!-- Add Shipping Detail Start-->
|
325 |
<!-- Add Shipping Detail Start-->
|
| 166 |
<form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
|
326 |
<form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
|
| 167 |
<table cellpadding="0" cellspacing="0">
|
327 |
<table cellpadding="0" cellspacing="0">
|
| 168 |
<thead>
|
328 |
<thead>
|
| 169 |
<tr class="header">
|
329 |
<tr class="header">
|
| 170 |
<td colspan="2">Enter the shipping address where you want the items to be delivered</td>
|
330 |
<td colspan="2">Enter the address where you want the items to be delivered</td>
|
| 171 |
</tr>
|
331 |
</tr>
|
| 172 |
</thead>
|
332 |
</thead>
|
| 173 |
<tbody>
|
333 |
<tbody>
|
| 174 |
<tr>
|
334 |
<tr>
|
| 175 |
<td> </td>
|
335 |
<td> </td>
|
| Line 226... |
Line 386... |
| 226 |
<a id="closeAddAddressForm">Clear</a>
|
386 |
<a id="closeAddAddressForm">Clear</a>
|
| 227 |
</td>
|
387 |
</td>
|
| 228 |
</tr>
|
388 |
</tr>
|
| 229 |
<tr>
|
389 |
<tr>
|
| 230 |
<td> </td>
|
390 |
<td> </td>
|
| 231 |
<td class="instruction">This will be added to your list of shipping addresses</td>
|
391 |
<td class="instruction">This will be added to your list of addresses</td>
|
| 232 |
</tr>
|
392 |
</tr>
|
| 233 |
</tbody>
|
393 |
</tbody>
|
| 234 |
</table>
|
394 |
</table>
|
| - |
|
395 |
<input id="tabSelectorForAddAddressForm" type="hidden" name="selectedTab" value="myLocation" />
|
| 235 |
</form>
|
396 |
</form>
|
| 236 |
|
397 |
|