| 3830 |
chandransh |
1 |
#set($Integer = 0)
|
|
|
2 |
#if($defaultAddressId)
|
|
|
3 |
#set($defaultid = $Integer.parseInt($defaultAddressId))
|
|
|
4 |
#else
|
|
|
5 |
#set($defaultid = 0)
|
|
|
6 |
#end
|
|
|
7 |
|
|
|
8 |
#if(!$errorMsg.isEmpty())
|
|
|
9 |
<div id="messageError">
|
|
|
10 |
<span></span>
|
|
|
11 |
<p>$errorMsg <br/></p>
|
|
|
12 |
</div>
|
|
|
13 |
#end
|
|
|
14 |
<div class="free-shipping left">
|
|
|
15 |
<div class="label">Shipping to your area is <span class="orange">FREE</span>.</div>
|
|
|
16 |
<div class="payment-modes-msg">
|
|
|
17 |
We accept all <b>credit / debit cards</b> and <b>netbanking facilities</b>. You can also pay <b>Cash on Delivery</b>.
|
|
|
18 |
</div>
|
|
|
19 |
</div>
|
|
|
20 |
<form id="formProceedToPay" action="/proceed-to-pay" method="post">
|
|
|
21 |
<input type="hidden" value="$defaultid" name="addressid" id="addressid">
|
|
|
22 |
</form>
|
| 3903 |
varun.gupt |
23 |
<div id="proceedToPay" class="cartflow-main-action-button right">PROCEED TO PAYMENT ></div>
|
| 3830 |
chandransh |
24 |
|
|
|
25 |
#if($items)
|
|
|
26 |
<div class="cart-container left">
|
|
|
27 |
<table id="cartDetail" cellpadding="0" cellspacing="0" class="left">
|
|
|
28 |
<thead>
|
|
|
29 |
<tr>
|
|
|
30 |
<th width="212" class="first">Item & Color</th>
|
|
|
31 |
<th width="117">Delivery Time</th>
|
|
|
32 |
<th width="99">Total Price </th>
|
|
|
33 |
</tr>
|
|
|
34 |
</thead>
|
|
|
35 |
<tbody>
|
|
|
36 |
#foreach($item in $items)
|
|
|
37 |
#if($item.get("SHIPPING_TIME") == -1)
|
|
|
38 |
#set($locationServiceable = 0)
|
|
|
39 |
#set($messageShippingTime = "Location not serviceable")
|
|
|
40 |
#else
|
|
|
41 |
#set($locationServiceable = 1)
|
|
|
42 |
#set($messageShippingTime = $item.get("SHIPPING_TIME") + " Bus. Days")
|
|
|
43 |
#end
|
|
|
44 |
<tr>
|
|
|
45 |
<td>
|
|
|
46 |
<div class="cart-item-name-div padding5">
|
| 4217 |
varun.gupt |
47 |
<span class="cart-item-name">$item.get("ITEM_NAME")</span><br/>
|
| 3830 |
chandransh |
48 |
<span class="cart-item-color">$item.get("ITEM_COLOR")</span>
|
| 4225 |
varun.gupt |
49 |
#if($item.get("BEST_DEAL_TEXT"))
|
|
|
50 |
<div class="cart-item-best-deal-text">$item.get("BEST_DEAL_TEXT")</div>
|
| 4217 |
varun.gupt |
51 |
#end
|
| 3830 |
chandransh |
52 |
</div>
|
|
|
53 |
</td>
|
|
|
54 |
<td id="shipping_time_$item.get("ITEM_ID")">$messageShippingTime</td>
|
|
|
55 |
<td>
|
|
|
56 |
<img src="/images/rupee-symbol.png" alt="Rs." />
|
|
|
57 |
$item.get("TOTAL_PRICE")<br />(for $item.get("ITEM_QUANTITY") pcs)
|
|
|
58 |
</td>
|
|
|
59 |
</tr>
|
|
|
60 |
#end
|
|
|
61 |
</tbody>
|
|
|
62 |
</table>
|
|
|
63 |
<table class="right net-amount" cellspacing="0">
|
|
|
64 |
<tr>
|
|
|
65 |
<td class="label">SHIPPING:</td>
|
|
|
66 |
<td class="orange">FREE</td>
|
|
|
67 |
</tr>
|
|
|
68 |
#if($couponcode != "")
|
|
|
69 |
#set($cssClass = "")
|
|
|
70 |
#else
|
|
|
71 |
#set($cssClass = "payable")
|
|
|
72 |
#end
|
|
|
73 |
<tr class="total-amount $cssClass">
|
|
|
74 |
<td class="label">Total Amount:</td>
|
|
|
75 |
<td><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td>
|
|
|
76 |
</tr>
|
|
|
77 |
#if($couponcode != "")
|
|
|
78 |
<tr class="discounted-amount payable">
|
| 4923 |
varun.gupt |
79 |
<td class="label">Amount Payable:<br />(After Discount)</td>
|
| 3831 |
rajveer |
80 |
<td><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedamount</td>
|
| 3830 |
chandransh |
81 |
</tr>
|
|
|
82 |
#end
|
|
|
83 |
</table>
|
|
|
84 |
</div>
|
|
|
85 |
#end
|
|
|
86 |
|
|
|
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>
|
|
|
92 |
<button id="addAddress" class="new-button right">+ Add New Address</button>
|
|
|
93 |
</td>
|
|
|
94 |
</tr>
|
|
|
95 |
</thead>
|
|
|
96 |
<tbody>
|
|
|
97 |
#set($shipAddressEmpty = 1)
|
|
|
98 |
#foreach($address in $addresses)
|
|
|
99 |
#set($shipAddressEmpty = 0)
|
|
|
100 |
#set($addressId = $address.getId())
|
|
|
101 |
|
|
|
102 |
#if($defaultid == $addressId)
|
|
|
103 |
#set($cssClassDefault = "default-address")
|
|
|
104 |
#else
|
|
|
105 |
#set($cssClassDefault = "")
|
|
|
106 |
#end
|
|
|
107 |
<tr id="tr_$address.getId()" class="address $cssClassDefault">
|
|
|
108 |
<td align="center" valign="top" class="radio">
|
|
|
109 |
#if($defaultid == $addressId)
|
|
|
110 |
#set($shipAddressEmpty = 0)
|
|
|
111 |
<img src="/images/RadioButton_Selected.png" />
|
| 5040 |
varun.gupt |
112 |
<input type="hidden" id="selectedPincode" value="$address.getPin()" />
|
| 3830 |
chandransh |
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
|
|
|
117 |
</td>
|
|
|
118 |
<td class="detail">
|
|
|
119 |
<b>SHIP ITEMS TO THIS ADDRESS</b>
|
|
|
120 |
<p>
|
|
|
121 |
#if($address.getName())
|
|
|
122 |
<b>$address.getName()</b><br />
|
| 3101 |
chandransh |
123 |
#end
|
|
|
124 |
#if($address.getLine1())
|
| 3830 |
chandransh |
125 |
<label>$address.getLine1() </label><br />
|
| 3101 |
chandransh |
126 |
#end
|
| 3830 |
chandransh |
127 |
#if($address.getLine2() != "")
|
|
|
128 |
<label>$address.getLine2()</label><br />
|
| 3101 |
chandransh |
129 |
#end
|
|
|
130 |
#if($address.getCity())
|
| 3830 |
chandransh |
131 |
<label>$address.getCity()</label><br />
|
| 3101 |
chandransh |
132 |
#end
|
|
|
133 |
#if($address.getState())
|
| 3830 |
chandransh |
134 |
<label>$address.getState()</label><br />
|
| 3101 |
chandransh |
135 |
#end
|
|
|
136 |
#if($address.getPin())
|
| 3830 |
chandransh |
137 |
<label>Pin: $address.getPin()</label>
|
|
|
138 |
#end
|
|
|
139 |
</p>
|
| 3101 |
chandransh |
140 |
#if($address.getPhone())
|
| 3830 |
chandransh |
141 |
<b>Phone: $address.getPhone() </b>
|
| 3101 |
chandransh |
142 |
#end
|
| 3830 |
chandransh |
143 |
</td>
|
|
|
144 |
<td class="delete">
|
|
|
145 |
<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
|
|
|
146 |
</td>
|
|
|
147 |
</tr>
|
|
|
148 |
#end
|
|
|
149 |
#if($shipAddressEmpty!=0)
|
|
|
150 |
<tr><td colspan="2">You do not have a shipping address linked to your profile. Please add one.</td></tr>
|
|
|
151 |
#end
|
|
|
152 |
<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
|
|
|
153 |
</tbody>
|
|
|
154 |
</table>
|
| 861 |
vikas |
155 |
|
| 3830 |
chandransh |
156 |
#if($shipAddressEmpty == 1)
|
|
|
157 |
<input type="hidden" id="canProceedToPay" value="0" />
|
|
|
158 |
<input type="hidden" id="reasonActionDisability" value="Please specify a shipping address" />
|
|
|
159 |
#elseif($locationServiceable == 0)
|
|
|
160 |
<input type="hidden" id="canProceedToPay" value="0" />
|
|
|
161 |
<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
|
| 3101 |
chandransh |
162 |
#else
|
| 3830 |
chandransh |
163 |
<input type="hidden" id="canProceedToPay" value="1" />
|
| 3101 |
chandransh |
164 |
#end
|
| 3830 |
chandransh |
165 |
<!-- Add Shipping Detail Start-->
|
|
|
166 |
<form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
|
|
|
167 |
<table cellpadding="0" cellspacing="0">
|
|
|
168 |
<thead>
|
|
|
169 |
<tr class="header">
|
|
|
170 |
<td colspan="2">Enter the shipping address where you want the items to be delivered</td>
|
|
|
171 |
</tr>
|
|
|
172 |
</thead>
|
|
|
173 |
<tbody>
|
|
|
174 |
<tr>
|
|
|
175 |
<td> </td>
|
|
|
176 |
<td class="instruction">All Fields are required</td>
|
|
|
177 |
</tr>
|
|
|
178 |
<tr>
|
| 4136 |
rajveer |
179 |
<td class="label" align="right"><sup>*</sup>Name:</td>
|
| 3830 |
chandransh |
180 |
<td class="input">
|
| 4453 |
varun.gupt |
181 |
<input type="text" id="shipName" name="name" class="searchbox right" />
|
| 3830 |
chandransh |
182 |
</td>
|
|
|
183 |
</tr>
|
|
|
184 |
<tr>
|
| 4136 |
rajveer |
185 |
<td class="label" align="right"><sup>*</sup>Address Line 1:</td>
|
| 3830 |
chandransh |
186 |
<td class="input">
|
|
|
187 |
<input type="text" id="shipAddress1" name="line1" class="searchbox right" />
|
|
|
188 |
</td>
|
|
|
189 |
</tr>
|
|
|
190 |
<tr>
|
|
|
191 |
<td class="label" align="right">Address Line 2:</td>
|
|
|
192 |
<td class="input">
|
|
|
193 |
<input type="text" id="shipAddress2" name="line2" class="searchbox right" />
|
|
|
194 |
</td>
|
|
|
195 |
</tr>
|
|
|
196 |
<tr>
|
| 4136 |
rajveer |
197 |
<td class="label" align="right"><sup>*</sup>State</td>
|
| 3830 |
chandransh |
198 |
<td class="input">
|
|
|
199 |
<select class="select_state" name="state" id="shipState">
|
|
|
200 |
#include("templates/stateslist.vm")
|
|
|
201 |
</select>
|
|
|
202 |
</td>
|
|
|
203 |
</tr>
|
|
|
204 |
<tr>
|
| 4136 |
rajveer |
205 |
<td class="label" align="right"><sup>*</sup>City:</td>
|
| 3830 |
chandransh |
206 |
<td class="input">
|
|
|
207 |
<input type="text" id="shipCity" name="city" class="searchbox"/>
|
|
|
208 |
</td>
|
|
|
209 |
</tr>
|
|
|
210 |
<tr>
|
| 4136 |
rajveer |
211 |
<td class="label" align="right"><sup>*</sup>Pin Code:</td>
|
| 3830 |
chandransh |
212 |
<td class="input">
|
|
|
213 |
<input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" />
|
|
|
214 |
</td>
|
|
|
215 |
</tr>
|
|
|
216 |
<tr>
|
| 4136 |
rajveer |
217 |
<td class="label" align="right"><sup>*</sup>Phone:</td>
|
| 3830 |
chandransh |
218 |
<td class="input">
|
| 3831 |
rajveer |
219 |
<input type="text" id="shipPhone" name="phone" value="" class="searchbox right" />
|
| 3830 |
chandransh |
220 |
</td>
|
|
|
221 |
</tr>
|
|
|
222 |
<tr>
|
|
|
223 |
<td colspan="2" align="center">
|
|
|
224 |
<input type="hidden" name="action" value="add" />
|
|
|
225 |
<input type="submit" id="submitAddress" value="Save Address" class="new-button" />
|
|
|
226 |
<a id="closeAddAddressForm">Clear</a>
|
|
|
227 |
</td>
|
|
|
228 |
</tr>
|
|
|
229 |
<tr>
|
|
|
230 |
<td> </td>
|
|
|
231 |
<td class="instruction">This will be added to your list of shipping addresses</td>
|
|
|
232 |
</tr>
|
|
|
233 |
</tbody>
|
|
|
234 |
</table>
|
|
|
235 |
</form>
|