Subversion Repositories SmartDukaan

Rev

Rev 2012 | Rev 3312 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
517 rajveer 1
#set($Integer = 0)
2
#if($defaultAddressId)
3
	#set($defaultid = $Integer.parseInt($defaultAddressId))
4
#else
5
	#set($defaultid = 0)
6
#end
7
 
8
<!-- Add Shipping Detail Start-->
794 rajveer 9
 
10
<div id="registration">
11
  <div class="top">
12
    <div class="left">
13
      <div class="right"> &nbsp; </div>
507 rajveer 14
    </div>
794 rajveer 15
  </div>
16
  <div class="middle">
17
    <div class="mid-inner">
18
 
19
      <!-- Block 1 -->
20
      <div class="padding-top17">
839 vikas 21
				#if(!$errorMsg.isEmpty())
22
                <div id="messageError">
23
                    <span></span>
24
                    <p>
25
                        $errorMsg <br/>
26
                    </p>
27
                </div>
28
                    #end
29
 
794 rajveer 30
        <!-- Block-1 Left-->
31
        <div class="shipping-block1-L">
839 vikas 32
          <div class="ship-address-block">
33
			<h2>Shipping Address</h2>
794 rajveer 34
            <div class="ship-address-inner" style="height:200px; overflow-y:auto;">
35
              <div id="shipAddressContainer">
3101 chandransh 36
				#set($shipAddressEmpty = 1)
37
				#foreach($address in $addresses)
38
        			#if($defaultid == $address.getId())
39
        			    #set($shipAddressEmpty = 0)
40
        				#if($address.getName())
41
                        <label>$address.getName()</label><br />
42
        				#end
43
        				#if($address.getLine1())
44
                        <label>$address.getLine1() </label><br />
45
        				#end	
46
        				#if($address.getLine2())
47
                        <label>$address.getLine2()</label><br />
48
        				#end
49
        				#if($address.getCity())	
50
                        <label>$address.getCity()</label><br />
51
        				#end
52
        				#if($address.getState())
53
                        <label>$address.getState()</label><br />
54
        				#end
55
        				#if($address.getPin())	
56
                        <label>Pin: $address.getPin()</label><br />
57
        				#end
58
        				#if($address.getPhone())
59
                        <label>Mob: $address.getPhone() </label><br />
60
        				#end
61
        			#end
62
				#end
1201 varun.gupt 63
 
3101 chandransh 64
				#if($shipAddressEmpty!=0)
65
                <p>You do not have a shipping address linked to your profile. Please add one.</p>
66
				#end
794 rajveer 67
              </div>
68
              <div class="ship-address-bttn" style="margin-top: 20px;">
69
                <div class="bigImgButton yellow-image">
3101 chandransh 70
				#if($shipAddressEmpty!=0)
1187 varun.gupt 71
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Add Shipping Address" class="button" />
3101 chandransh 72
				#else
794 rajveer 73
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Ship to Another Address" class="button" />
3101 chandransh 74
				#end	
794 rajveer 75
                </div>
839 vikas 76
 
794 rajveer 77
              </div>
78
              <div class="clearBoth"></div>     
79
            </div>
517 rajveer 80
 
794 rajveer 81
          </div>
82
 
83
        </div><!-- Block-1 Left End-->
861 vikas 84
 
3101 chandransh 85
		<!-- Block-1 Right-->
86
		#if($items)
861 vikas 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>
3101 chandransh 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")
105
				#end
861 vikas 106
              <tr>
946 vikas 107
                <td>$item.get("ITEM_NAME") </td>
1441 varun.gupt 108
                <td>$messageShippingTime</td>
946 vikas 109
                <td class="quantity">$item.get("ITEM_QUANTITY") </td>
110
                <td>Rs. $item.get("TOTAL_PRICE") </td>
861 vikas 111
              </tr>
3101 chandransh 112
			#end
2012 varun.gupt 113
			#if($couponcode != "")
114
				#set($styleTotalAmount = "total-amount")
115
			#else
116
				#set($styleTotalAmount = "discounted-amount")
117
			#end
861 vikas 118
              <tr align="right">
2012 varun.gupt 119
                <td colspan="4" class="$styleTotalAmount">Total Amount: Rs. $totalamount</td>
861 vikas 120
              </tr>
1985 varun.gupt 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
861 vikas 126
            </tbody>
127
          </table>
128
          <div align="right" class="proceed-bttn">
3101 chandransh 129
			#if($shipAddressEmpty == 1 || $locationServiceable == 0)
130
		        #set($divButtonClass = "imgDisableButton")
131
				#set($disableButton = "disabled=''")
132
				#set($message = "Please specify a shipping address")
133
	        #else
134
				#set($divButtonClass = "bigImgButton")
135
				#set($disableButton = "")
136
				#set($message = "Pay using Credit/Debit/ATM/Cash cards, Net Banking or COD")
137
			#end
138
			<div style="float:left; width:430px; margin-right:5px;">
139
				<label style="margin-top: 3px;">$message</label>
140
			</div>
141
			<div class="$divButtonClass yellow-image" style="float:right">
142
              <form id="frmProceedToPay" name="frmProceedToPay" action="/proceed-to-pay" method="post" onsubmit="return trackProceedToPay();">
1905 chandransh 143
                <input type="hidden" id="addressid" name="addressid" value="$defaultid" />
3101 chandransh 144
                <input $disableButton type="submit" name="btnSearch"  id="btnProceed" value="Proceed to Pay" class="button"/>
861 vikas 145
              </form>
146
 
147
              <div class="clearBoth"></div>
148
            </div>
149
            <div class="clearBoth"></div>
150
          </div> 
151
        </div>
3101 chandransh 152
		#else
861 vikas 153
        <div class="shipping-block1-R" style="height:225px; overflow-y:auto;">
154
          <label class="floatLeft" style="margin-top: 3px;">Your cart is empty. &nbsp;</label>
155
        </div>	
3101 chandransh 156
		#end
861 vikas 157
		<!-- Block-1 Right End-->
158
 
805 rajveer 159
		<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>
160
 
794 rajveer 161
        <div class="clearBoth"></div>
162
      </div><!-- Block 1 End-->
163
      <div class="clearBoth"></div>
164
      <!-- Block 2 -->	
165
      <div class="padding-top17" style="display: none;" id="newShipAdr">
166
        <!-- Block 2 Right -->
811 rajveer 167
        <div class="shipping-block2-L">
794 rajveer 168
          <h2 class="mid-innerHeading">Other Addresses on Record</h2>
825 rajveer 169
          <div class="shipping-details-scroller">
794 rajveer 170
 
3101 chandransh 171
			#foreach($address in $addresses)
825 rajveer 172
            <div class="ship-address-block-address">
794 rajveer 173
              <div class="ship-address-inner">
174
                <div id="shipAddressContainer$address.getId()">
517 rajveer 175
								#if($address.getName())
794 rajveer 176
                  <label>$address.getName()</label><br />
517 rajveer 177
								#end
178
								#if($address.getLine1())
794 rajveer 179
                  <label>$address.getLine1() </label><br />
517 rajveer 180
								#end	
181
								#if($address.getLine1())
794 rajveer 182
                  <label>$address.getLine2()</label><br />
517 rajveer 183
								#end
184
								#if($address.getCity())	
794 rajveer 185
                  <label>$address.getCity()</label><br />
517 rajveer 186
								#end
187
								#if($address.getState())
794 rajveer 188
                  <label>$address.getState()</label><br />
517 rajveer 189
								#end
190
								#if($address.getPin())	
794 rajveer 191
                  <label>Pin: $address.getPin()</label><br />
517 rajveer 192
								#end
193
								#if($address.getPhone())
794 rajveer 194
                  <label>Mob: $address.getPhone() </label><br />
517 rajveer 195
								#end			
794 rajveer 196
 
197
                </div>	
198
                <div class="ship-address-bttn">
199
                  <div class="bigImgButton yellow-image">
1446 varun.gupt 200
					<form action="/shipping?action=change&addressid=$address.getId()" method="post">
201
						<input type="submit" value="Ship to this Address" class="button" />
202
                    </form>
203
                    <!--input type="submit" name="btnSearch" onclick="changeShipAddress('shipAddressContainer$address.getId()')"  id="" value="Ship to this Address" class="button" /-->
794 rajveer 204
                  </div>
205
                </div>
206
                <div class="clearBoth"></div>     
207
              </div>
208
            </div>
507 rajveer 209
					#end
794 rajveer 210
 
211
          </div>	
212
        </div>
213
 
214
 
215
 
216
        <div class="" style="width:424px; float:left;">
217
          <div class="ship-address-block">
218
            <h2>Specify a New Address</h2>
219
            <div class="ship-address-form">
839 vikas 220
              <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="shipping"> <!-- action="./shipping" -->
794 rajveer 221
                <div class="register-row">
839 vikas 222
                  <label><sup>*</sup><span>Name:</span></label>
794 rajveer 223
                  <div class="imgTextBox textbox-image">
1774 varun.gupt 224
                    <input type="text" id="shipName" name="name" value="$fullname" class="textbox" />
794 rajveer 225
                  </div>
226
                  <div class="clearBoth"></div>
507 rajveer 227
                </div>
794 rajveer 228
                <div class="register-row">
839 vikas 229
                  <label><sup>*</sup><span>Address:</span></label>
794 rajveer 230
                  <div class="imgTextBox textbox-image">
231
                    <input type="text" id="shipAddress1" name="line1" value="" class="textbox" />
232
                  </div>
233
                  <div class="clearBoth"></div>
234
                </div>
235
                <div class="register-row">
236
                  <label>&nbsp;</label>
237
                  <div class="imgTextBox textbox-image">
238
                    <input type="text" id="shipAddress2" name="line2" value="" class="textbox" />
239
                  </div>
240
                  <div class="clearBoth"></div>
241
                </div>
242
                <div class="register-row">
839 vikas 243
                  <label for="state"><sup>*</sup><span>State</span></label>
244
				  <div class="select-list imgTextBox">
245
                  <select class="select_state" name="state" id="shipState">
637 rajveer 246
										#include("templates/stateslist.vm")
794 rajveer 247
                  </select>
839 vikas 248
                  </div>
794 rajveer 249
                  <div class="clearBoth"></div>
250
                </div>
251
                <div class="register-row">
252
                  <label><sup>*</sup><span>City:</span></label>
253
                  <div class="imgTextBox textbox-image">
254
                    <input type="text" id="shipCity" name="city" value="" class="textbox"/>
255
                  </div>
256
                  <div class="clearBoth"></div>
257
                </div>
258
                <div class="register-row">
259
                  <label><sup>*</sup><span>Pin Code:</span></label>
260
                  <div class="imgTextBox textbox-image">
261
                    <input type="text" id="shipPin" name="pincode" value="" class="textbox textbox-pincode" style="width: 60px;" />
262
                  </div>
263
                  <div class="clearBoth"></div>
264
                </div>
265
                <div class="register-row">
266
                  <label><sup>*</sup><span>Phone:</span></label>
267
                  <div class="imgTextBox textbox-image">
1774 varun.gupt 268
                    <input type="text" id="shipPhone" name="phone" value="$phonenumber" class="textbox" />
794 rajveer 269
                  </div>
270
                  <div class="clearBoth"></div>
271
                </div>
272
                <div class="ship-address-bttn">
811 rajveer 273
                  <div class="form-button-outer first">
274
                    <div class="bigImgButton floatLeft yellow-image">
275
                      <input type="hidden" id="" name="action" value="add" >
276
                      <input type="submit" name="submitAddress"  id="submitAddress" value="Ship to this Address" class="button" />
277
                    </div>
794 rajveer 278
                  </div>
811 rajveer 279
                  <div class="form-button-outer last">
280
                    <div class="bigImgButton floatLeft yellow-image">
281
                      <input type="button" name="btnSearch" onclick="resetShipForm();" id="" value="Cancel" class="button button1" />
282
                    </div>
794 rajveer 283
                  </div>
284
                  <div class="clearBoth"></div>
285
 
286
 
287
                </div>
288
                <div class="clearBoth"></div>
289
              </form>
290
            </div>
291
          </div>
292
        </div><!-- Block 2 Right End-->
293
 
294
        <div class="clearBoth"></div>
295
      </div><!-- Block 2 End-->	
296
      <div class="clearBoth"></div>
297
    </div><!-- mid inner end-->
298
  </div>
299
  <div class="bottom">
300
    <div class="left">
301
      <div class="right"> &nbsp; </div>
507 rajveer 302
    </div>
303
  </div>
794 rajveer 304
</div>
305
<!-- /Add Shipping Detail End-->