Subversion Repositories SmartDukaan

Rev

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

Rev 3312 Rev 3830
Line 1... Line 1...
1
#set($Integer = 0)
1
	#set($Integer = 0)
2
#if($defaultAddressId)
2
	#if($defaultAddressId)
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
<!-- Add Shipping Detail Start-->
8
	#if(!$errorMsg.isEmpty())
9
 
-
 
10
<div id="registration">
9
		<div id="messageError">
11
  <div class="top">
10
			<span></span>
-
 
11
			<p>$errorMsg <br/></p>
-
 
12
		</div>
-
 
13
	#end
12
    <div class="left">
14
		<div class="free-shipping left">
-
 
15
			<div class="label">Shipping to your area is <span class="orange">FREE</span>.</div>
13
      <div class="right"> &nbsp; </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>.
14
    </div>
18
			</div>
15
  </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>
-
 
23
		<div id="proceedToPay" class="cartflow-main-action-button right">3. PROCEED TO PAYMENT &gt;</div>
-
 
24
			
16
  <div class="middle">
25
		#if($items)
17
    <div class="mid-inner">
26
		<div class="cart-container left">
-
 
27
			#set($totalamount = $action.getTotalAmount())
-
 
28
			#set($couponcode = $action.getCouponCode())
-
 
29
			#set($discountedAmount = $action.getDiscountedAmount())
-
 
30
			<table id="cartDetail" cellpadding="0" cellspacing="0" class="left">
-
 
31
				<thead>
18
 
32
					<tr>
-
 
33
						<th width="212" class="first">Item &amp; Color</th>
-
 
34
						<th width="117">Delivery Time</th>
-
 
35
						<th width="99">Total Price </th>
19
      <!-- Block 1 -->
36
                    </tr>
20
      <div class="padding-top17">
37
                </thead>
-
 
38
				<tbody>
21
				#if(!$errorMsg.isEmpty())
39
				#foreach($item in $items)
-
 
40
					#if($item.get("SHIPPING_TIME") == -1)
-
 
41
						#set($locationServiceable = 0)
-
 
42
						#set($messageShippingTime = "Location not serviceable")
-
 
43
					#else
-
 
44
						#set($locationServiceable = 1)
-
 
45
						#set($messageShippingTime = $item.get("SHIPPING_TIME") + " Bus. Days")
-
 
46
					#end
-
 
47
					<tr>
-
 
48
						<td>
-
 
49
							<div class="cart-item-name-div padding5">
-
 
50
                                <span class="cart-item-name">$item.get("ITEM_NAME")</span>
22
                <div id="messageError">
51
                                <br/>
-
 
52
								<span class="cart-item-color">$item.get("ITEM_COLOR")</span>
23
                    <span></span>
53
                            </div>
24
                    <p>
54
                        </td>
-
 
55
						<td id="shipping_time_$item.get("ITEM_ID")">$messageShippingTime</td>
-
 
56
						<td>
25
                        $errorMsg <br/>
57
							<img src="/images/rupee-symbol.png" alt="Rs." /> 
-
 
58
							$item.get("TOTAL_PRICE")<br />(for $item.get("ITEM_QUANTITY") pcs)
-
 
59
						</td>
26
                    </p>
60
                    </tr>
-
 
61
				#end
27
                </div>
62
                </tbody>
28
                    #end
63
            </table>
-
 
64
			<table class="right net-amount" cellspacing="0">
29
 
65
				<tr>
30
        <!-- Block-1 Left-->
66
					<td class="label">SHIPPING:</td>
31
        <div class="shipping-block1-L">
67
					<td class="orange">FREE</td>
-
 
68
				</tr>
-
 
69
				#if($couponcode != "")
-
 
70
					#set($cssClass = "")
-
 
71
				#else
-
 
72
					#set($cssClass = "payable")
-
 
73
				#end
32
          <div class="ship-address-block">
74
				<tr class="total-amount $cssClass">
-
 
75
					<td class="label">Total Amount:</td>
-
 
76
					<td><img src="/images/rupee-symbol.png" alt="Rs." /> $totalamount</td>
-
 
77
				</tr>
33
			<h2>Shipping Address</h2>
78
				#if($couponcode != "")
-
 
79
				<tr class="discounted-amount payable">
-
 
80
					<td class="label">Amount Payable (After Discount):</td>
-
 
81
					<td><img src="/images/rupee-symbol.png" alt="Rs." /> $discountedAmount</td>
-
 
82
				</tr>
-
 
83
				#end
-
 
84
			</table>
-
 
85
        </div>
-
 
86
		#end
-
 
87
		
-
 
88
		<table id="addresses" class="right" cellspacing="0" cellpadding="2">
-
 
89
			<thead>
-
 
90
				<tr>
-
 
91
					<td colspan="3">
-
 
92
						<div class="label left">Select Shipping Address</div>
34
            <div class="ship-address-inner" style="height:200px; overflow-y:auto;">
93
						<button id="addAddress" class="new-button right">+ Add New Address</button>
35
              <div id="shipAddressContainer">
94
                    </td>
-
 
95
                </tr>
-
 
96
            </thead>
-
 
97
			<tbody>
36
				#set($shipAddressEmpty = 1)
98
		#set($shipAddressEmpty = 1)
37
				#foreach($address in $addresses)
99
		#foreach($address in $addresses)
-
 
100
			#set($shipAddressEmpty = 0)
-
 
101
			#set($addressId = $address.getId())
-
 
102
			
-
 
103
			#if($defaultid == $addressId)
-
 
104
				#set($cssClassDefault = "default-address")
-
 
105
			#else
-
 
106
				#set($cssClassDefault = "")
-
 
107
			#end
-
 
108
				<tr id="tr_$address.getId()" class="address $cssClassDefault">
-
 
109
					<td align="center" valign="top" class="radio">
38
        			#if($defaultid == $address.getId())
110
			#if($defaultid == $addressId)
39
        			    #set($shipAddressEmpty = 0)
111
				#set($shipAddressEmpty = 0)
-
 
112
						<img src="/images/RadioButton_Selected.png" />
-
 
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>
40
        				#if($address.getName())
121
						#if($address.getName())
41
                        <label>$address.getName()</label><br />
122
							<b>$address.getName()</b><br />
42
        				#end
123
        				#end
43
        				#if($address.getLine1())
124
        				#if($address.getLine1())
44
                        <label>$address.getLine1() </label><br />
125
							<label>$address.getLine1() </label><br />
45
        				#end	
126
        				#end	
46
        				#if($address.getLine2())
127
        				#if($address.getLine2() != "")
47
                        <label>$address.getLine2()</label><br />
128
							<label>$address.getLine2()</label><br />
48
        				#end
129
        				#end
49
        				#if($address.getCity())	
130
        				#if($address.getCity())	
50
                        <label>$address.getCity()</label><br />
131
							<label>$address.getCity()</label><br />
51
        				#end
132
        				#end
52
        				#if($address.getState())
133
        				#if($address.getState())
53
                        <label>$address.getState()</label><br />
134
							<label>$address.getState()</label><br />
54
        				#end
135
        				#end
55
        				#if($address.getPin())	
136
        				#if($address.getPin())	
56
                        <label>Pin: $address.getPin()</label><br />
137
							<label>Pin: $address.getPin()</label>
57
        				#end
138
						#end
-
 
139
                        </p>
58
        				#if($address.getPhone())
140
        				#if($address.getPhone())
59
                        <label>Mob: $address.getPhone() </label><br />
141
                        <b>Phone: $address.getPhone() </b>
60
        				#end
142
        				#end
61
        			#end
-
 
62
				#end
-
 
63
							
-
 
64
				#if($shipAddressEmpty!=0)
-
 
65
                <p>You do not have a shipping address linked to your profile. Please add one.</p>
-
 
66
				#end
-
 
67
              </div>
-
 
68
              <div class="ship-address-bttn" style="margin-top: 20px;">
-
 
69
                <div class="bigImgButton yellow-image">
-
 
70
				#if($shipAddressEmpty!=0)
-
 
71
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Add Shipping Address" class="button" />
-
 
72
				#else
-
 
73
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Ship to Another Address" class="button" />
-
 
74
				#end	
-
 
75
                </div>
143
                    </td>
76
		    		
-
 
77
              </div>
-
 
78
              <div class="clearBoth"></div>     
-
 
79
            </div>
-
 
80
 
-
 
81
          </div>
-
 
82
 
-
 
83
        </div><!-- Block-1 Left End-->
-
 
84
		
-
 
85
		<!-- Block-1 Right-->
144
					<td class="delete">
86
		#if($items)
-
 
87
        <div class="shipping-block1-R" style="overflow-y:auto;">
-
 
88
          <table cellpadding="0" cellspacing="0" width="100%" class="estimate-table" >
-
 
89
            <thead>
-
 
90
              <tr>
-
 
91
                <th width="36%">Item</th>
-
 
92
                <th width="29%">Delivery Estimate</th>
-
 
93
                <th width="10%" class="quantity">Qty.</th>
-
 
94
                <th width="25%" class="last">Total Price</th>
-
 
95
              </tr>
-
 
96
            </thead>
-
 
97
            <tbody>
-
 
98
			#foreach($item in $items)
-
 
99
				#if($item.get("SHIPPING_TIME") == -1)
-
 
100
					#set($locationServiceable = 0)
-
 
101
					#set($messageShippingTime = "Location not serviceable")
-
 
102
				#else
-
 
103
					#set($locationServiceable = 1)
-
 
104
					#set($messageShippingTime = "within " + $item.get("SHIPPING_TIME") + " business days")
145
						<img id="delete_$addressId" class="delete-address" src="/images/Cross_DeleteRow_DEF.png" title="Delete this Address"/>
105
				#end
146
					</td>
106
              <tr>
-
 
107
                <td>$item.get("ITEM_NAME") </td>
-
 
108
                <td>$messageShippingTime</td>
-
 
109
                <td class="quantity">$item.get("ITEM_QUANTITY") </td>
-
 
110
                <td>Rs. $item.get("TOTAL_PRICE") </td>
-
 
111
              </tr>
147
                </tr>
112
			#end
148
		#end
113
			#if($couponcode != "")
149
		#if($shipAddressEmpty!=0)
114
				#set($styleTotalAmount = "total-amount")
-
 
115
			#else
-
 
116
				#set($styleTotalAmount = "discounted-amount")
150
                <tr><td colspan="2">You do not have a shipping address linked to your profile. Please add one.</td></tr>
117
			#end
151
		#end
118
              <tr align="right">
-
 
119
                <td colspan="4" class="$styleTotalAmount">Total Amount: Rs. $totalamount</td>
152
			<input type="hidden" id="addressEmpty" value="$shipAddressEmpty">
120
              </tr>
-
 
121
			  #if($couponcode != "")
-
 
122
			  <tr align="right">
-
 
123
				<td colspan="4" class="discounted-amount">Amount Payable (After Discount): Rs. $discountedamount </td>
-
 
124
              </tr>
-
 
125
			  #end
-
 
126
            </tbody>
153
            </tbody>
127
          </table>
154
        </table>
128
          <div align="right" class="proceed-bttn">
-
 
-
 
155
		
129
			#if($shipAddressEmpty == 1)
156
		#if($shipAddressEmpty == 1)
130
		        #set($divButtonClass = "imgDisableButton")
157
			<input type="hidden" id="canProceedToPay" value="0" />
131
				#set($disableButton = "disabled=''")
-
 
132
				#set($message = "Please specify a shipping address")
158
			<input type="hidden" id="reasonActionDisability" value="Please specify a shipping address" />
133
			#elseif($locationServiceable == 0)
159
		#elseif($locationServiceable == 0)
134
				#set($divButtonClass = "imgDisableButton")
-
 
135
				#set($disableButton = "disabled=''")
160
			<input type="hidden" id="canProceedToPay" value="0" />
136
				#set($message = "Location not serviceable.Please specify a different address")
161
			<input type="hidden" id="reasonActionDisability" value="Location not serviceable. Please specify a different address" />
137
	        #else
-
 
138
				#set($divButtonClass = "bigImgButton")
-
 
139
				#set($disableButton = "")
-
 
140
				#set($message = "Pay using Credit/Debit/ATM/Cash cards, Net Banking or COD")
-
 
141
			#end
-
 
142
			<div style="float:left; width:430px; margin-right:5px;">
-
 
143
				<label style="margin-top: 3px;">$message</label>
-
 
144
			</div>
-
 
145
			<div class="$divButtonClass yellow-image" style="float:right">
-
 
146
              <form id="frmProceedToPay" name="frmProceedToPay" action="/proceed-to-pay" method="post" onsubmit="return trackProceedToPay();">
-
 
147
                <input type="hidden" id="addressid" name="addressid" value="$defaultid" />
-
 
148
                <input $disableButton type="submit" name="btnSearch"  id="btnProceed" value="Proceed to Pay" class="button"/>
-
 
149
              </form>
-
 
150
 
-
 
151
              <div class="clearBoth"></div>
-
 
152
            </div>
-
 
153
            <div class="clearBoth"></div>
-
 
154
          </div> 
-
 
155
        </div>
-
 
156
		#else
162
		#else
157
        <div class="shipping-block1-R" style="height:225px; overflow-y:auto;">
163
			<input type="hidden" id="canProceedToPay" value="1" />
158
          <label class="floatLeft" style="margin-top: 3px;">Your cart is empty. &nbsp;</label>
-
 
159
        </div>	
-
 
160
		#end
164
		#end
161
		<!-- Block-1 Right End-->
165
		<!-- Add Shipping Detail Start-->
162
		
166
        <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="/shipping" class="right">
163
		<div class="floatRight" style="font-size: 10px; margin-top: 10px; color: #999999;">By placing order, you agree to Saholic.com's Privacy Policy and Terms &amp; Conditions.</div>
167
			<table cellpadding="0" cellspacing="0">
164
			
168
				<thead>
165
        <div class="clearBoth"></div>
169
					<tr class="header">
166
      </div><!-- Block 1 End-->
170
						<td colspan="2">Enter the shipping address where you want the items to be delivered</td>
167
      <div class="clearBoth"></div>
171
					</tr>
168
      <!-- Block 2 -->	
172
                </thead>
169
      <div class="padding-top17" style="display: none;" id="newShipAdr">
173
				<tbody>
170
        <!-- Block 2 Right -->
174
					<tr>
171
        <div class="shipping-block2-L">
175
						<td>&nbsp;</td>
172
          <h2 class="mid-innerHeading">Other Addresses on Record</h2>
176
						<td class="instruction">All Fields are required</td>
173
          <div class="shipping-details-scroller">
177
                    </tr>
174
 
178
                <tr>
175
			#foreach($address in $addresses)
179
					<td class="label" align="right">Name:</td>
176
            <div class="ship-address-block-address">
180
					<td class="input">
177
              <div class="ship-address-inner">
181
						<input type="text" id="shipName" name="name" value="$fullname" class="searchbox right" />
178
                <div id="shipAddressContainer$address.getId()">
182
					</td>
179
								#if($address.getName())
183
				</tr>
180
                  <label>$address.getName()</label><br />
184
                <tr>
181
								#end
185
					<td class="label" align="right">Address Line 1:</td>
182
								#if($address.getLine1())
186
					<td class="input">
183
                  <label>$address.getLine1() </label><br />
187
						<input type="text" id="shipAddress1" name="line1" class="searchbox right" />
184
								#end	
188
					</td>
185
								#if($address.getLine1())
189
				</tr>
186
                  <label>$address.getLine2()</label><br />
190
                <tr>
187
								#end
191
					<td class="label" align="right">Address Line 2:</td>
188
								#if($address.getCity())	
192
					<td class="input">
189
                  <label>$address.getCity()</label><br />
193
						<input type="text" id="shipAddress2" name="line2" class="searchbox right" />
190
								#end
194
					</td>
191
								#if($address.getState())
195
				</tr>
192
                  <label>$address.getState()</label><br />
196
                <tr>
193
								#end
197
					<td class="label" align="right">State</td>
194
								#if($address.getPin())	
198
					<td class="input">
195
                  <label>Pin: $address.getPin()</label><br />
199
						<select class="select_state" name="state" id="shipState">
196
								#end
200
						#include("templates/stateslist.vm")
197
								#if($address.getPhone())
201
						</select>
198
                  <label>Mob: $address.getPhone() </label><br />
202
					</td>
199
								#end			
203
				</tr>
200
 
204
                <tr>
201
                </div>	
205
					<td class="label" align="right">City:</td>
202
                <div class="ship-address-bttn">
206
					<td class="input">
203
                  <div class="bigImgButton yellow-image">
207
						<input type="text" id="shipCity" name="city" class="searchbox"/>
204
					<form action="/shipping?action=change&addressid=$address.getId()" method="post">
208
					</td>
205
						<input type="submit" value="Ship to this Address" class="button" />
209
				</tr>
206
                    </form>
210
                <tr>
207
                    <!--input type="submit" name="btnSearch" onclick="changeShipAddress('shipAddressContainer$address.getId()')"  id="" value="Ship to this Address" class="button" /-->
211
					<td class="label" align="right">Pin Code:</td>
208
                  </div>
212
					<td class="input">
209
                </div>
213
						<input type="text" id="shipPin" name="pincode" value="" class="searchbox textbox-pincode" />
210
                <div class="clearBoth"></div>     
214
					</td>
211
              </div>
215
				</tr>
212
            </div>
216
                <tr>
213
					#end
217
					<td class="label" align="right">Phone:</td>
214
 
218
					<td class="input">
215
          </div>	
219
						<input type="text" id="shipPhone" name="phone" value="$phonenumber" class="searchbox right" />
216
        </div>
220
					</td>
217
 
221
				</tr>
218
 
222
                <tr>
219
 
223
					<td colspan="2" align="center">
220
        <div class="" style="width:424px; float:left;">
224
						<input type="hidden" name="action" value="add" />
221
          <div class="ship-address-block">
225
						<input type="submit"  id="submitAddress" value="Save Address" class="new-button" />
222
            <h2>Specify a New Address</h2>
226
						<a id="closeAddAddressForm">Clear</a>
223
            <div class="ship-address-form">
227
					</td>
224
              <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="shipping"> <!-- action="./shipping" -->
228
				</tr>
225
                <div class="register-row">
229
				<tr>
226
                  <label><sup>*</sup><span>Name:</span></label>
230
					<td>&nbsp;</td>
227
                  <div class="imgTextBox textbox-image">
231
					<td class="instruction">This will be added to your list of shipping addresses</td>
228
                    <input type="text" id="shipName" name="name" value="$fullname" class="textbox" />
232
				</tr>
229
                  </div>
233
                </tbody>
230
                  <div class="clearBoth"></div>
234
			</table>
231
                </div>
235
		</form>
232
                <div class="register-row">
-
 
233
                  <label><sup>*</sup><span>Address:</span></label>
-
 
234
                  <div class="imgTextBox textbox-image">
-
 
235
                    <input type="text" id="shipAddress1" name="line1" value="" class="textbox" />
-
 
236
                  </div>
-
 
237
                  <div class="clearBoth"></div>
-
 
238
                </div>
-
 
239
                <div class="register-row">
-
 
240
                  <label>&nbsp;</label>
-
 
241
                  <div class="imgTextBox textbox-image">
-
 
242
                    <input type="text" id="shipAddress2" name="line2" value="" class="textbox" />
-
 
243
                  </div>
-
 
244
                  <div class="clearBoth"></div>
-
 
245
                </div>
-
 
246
                <div class="register-row">
-
 
247
                  <label for="state"><sup>*</sup><span>State</span></label>
-
 
248
				  <div class="select-list imgTextBox">
-
 
249
                  <select class="select_state" name="state" id="shipState">
-
 
250
										#include("templates/stateslist.vm")
-
 
251
                  </select>
-
 
252
                  </div>
-
 
253
                  <div class="clearBoth"></div>
-
 
254
                </div>
-
 
255
                <div class="register-row">
-
 
256
                  <label><sup>*</sup><span>City:</span></label>
-
 
257
                  <div class="imgTextBox textbox-image">
-
 
258
                    <input type="text" id="shipCity" name="city" value="" class="textbox"/>
-
 
259
                  </div>
-
 
260
                  <div class="clearBoth"></div>
-
 
261
                </div>
-
 
262
                <div class="register-row">
-
 
263
                  <label><sup>*</sup><span>Pin Code:</span></label>
-
 
264
                  <div class="imgTextBox textbox-image">
-
 
265
                    <input type="text" id="shipPin" name="pincode" value="" class="textbox textbox-pincode" style="width: 60px;" />
-
 
266
                  </div>
-
 
267
                  <div class="clearBoth"></div>
-
 
268
                </div>
-
 
269
                <div class="register-row">
-
 
270
                  <label><sup>*</sup><span>Phone:</span></label>
-
 
271
                  <div class="imgTextBox textbox-image">
-
 
272
                    <input type="text" id="shipPhone" name="phone" value="$phonenumber" class="textbox" />
-
 
273
                  </div>
-
 
274
                  <div class="clearBoth"></div>
-
 
275
                </div>
-
 
276
                <div class="ship-address-bttn">
-
 
277
                  <div class="form-button-outer first">
-
 
278
                    <div class="bigImgButton floatLeft yellow-image">
-
 
279
                      <input type="hidden" id="" name="action" value="add" >
-
 
280
                      <input type="submit" name="submitAddress"  id="submitAddress" value="Ship to this Address" class="button" />
-
 
281
                    </div>
-
 
282
                  </div>
-
 
283
                  <div class="form-button-outer last">
-
 
284
                    <div class="bigImgButton floatLeft yellow-image">
-
 
285
                      <input type="button" name="btnSearch" onclick="resetShipForm();" id="" value="Cancel" class="button button1" />
-
 
286
                    </div>
-
 
287
                  </div>
-
 
288
                  <div class="clearBoth"></div>
-
 
289
 
-
 
290
 
-
 
291
                </div>
-
 
292
                <div class="clearBoth"></div>
-
 
293
              </form>
-
 
294
            </div>
-
 
295
          </div>
-
 
296
        </div><!-- Block 2 Right End-->
-
 
297
 
-
 
298
        <div class="clearBoth"></div>
-
 
299
      </div><!-- Block 2 End-->	
-
 
300
      <div class="clearBoth"></div>
-
 
301
    </div><!-- mid inner end-->
-
 
302
  </div>
-
 
303
  <div class="bottom">
-
 
304
    <div class="left">
-
 
305
      <div class="right"> &nbsp; </div>
-
 
306
    </div>
-
 
307
  </div>
-
 
308
</div>
-
 
309
<!-- /Add Shipping Detail End-->
-
 
310
236