Subversion Repositories SmartDukaan

Rev

Rev 1774 | Rev 1905 | 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">
861 vikas 36
				            #set($shipAddressEmpty = 1)
517 rajveer 37
							#foreach($address in $addresses)
38
							#if($defaultid == $address.getId())
861 vikas 39
							    #set($shipAddressEmpty = 0)
517 rajveer 40
								#if($address.getName())
794 rajveer 41
                <label>$address.getName()</label><br />
517 rajveer 42
								#end
43
								#if($address.getLine1())
794 rajveer 44
                <label>$address.getLine1() </label><br />
517 rajveer 45
								#end	
46
								#if($address.getLine2())
794 rajveer 47
                <label>$address.getLine2()</label><br />
517 rajveer 48
								#end
49
								#if($address.getCity())	
794 rajveer 50
                <label>$address.getCity()</label><br />
517 rajveer 51
								#end
52
								#if($address.getState())
794 rajveer 53
                <label>$address.getState()</label><br />
517 rajveer 54
								#end
55
								#if($address.getPin())	
794 rajveer 56
                <label>Pin: $address.getPin()</label><br />
517 rajveer 57
								#end
58
								#if($address.getPhone())
794 rajveer 59
                <label>Mob: $address.getPhone() </label><br />
517 rajveer 60
								#end			
61
							#end
62
							#end
1201 varun.gupt 63
 
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">
1201 varun.gupt 70
					#if($shipAddressEmpty!=0)
1187 varun.gupt 71
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Add Shipping Address" class="button" />
72
					#else
794 rajveer 73
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Ship to Another Address" class="button" />
1187 varun.gupt 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
 
85
		        <!-- Block-1 Right-->
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)
1441 varun.gupt 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>
112
							#end
113
              <tr align="right">
114
                <td colspan="4" class="total-amount">Total Amount: Rs. $totalamount</td>
115
              </tr>
116
            </tbody>
117
          </table>
118
          <div align="right" class="proceed-bttn">
119
            <label class="floatLeft" style="margin-top: 3px;">We accept all major credit cards and debit cards &nbsp;</label>
1441 varun.gupt 120
			            #if($shipAddressEmpty == 1 || $locationServiceable == 0)
861 vikas 121
					        #set($divButtonClass = "imgDisableButton")
122
							#set($disableButton = "disabled=''")
123
            	        #else
124
							#set($divButtonClass = "bigImgButton")
125
							#set($disableButton = "")
126
						#end
127
 
128
			<div class="$divButtonClass floatLeft yellow-image">
1796 varun.gupt 129
              <form id="frmProceedToPay" action="./order" method="post">
861 vikas 130
                <input type="hidden" id="addressid" name="addressid" value="$defaultid" >
131
                <input $disableButton type="submit" name="btnSearch"  id="" value="Proceed to Pay" class="button"/>
132
              </form>
133
 
134
              <div class="clearBoth"></div>
135
            </div>
136
            <div class="clearBoth"></div>
137
          </div> 
138
        </div>
139
				#else
140
        <div class="shipping-block1-R" style="height:225px; overflow-y:auto;">
141
          <label class="floatLeft" style="margin-top: 3px;">Your cart is empty. &nbsp;</label>
142
        </div>	
143
				#end
144
		<!-- Block-1 Right End-->
145
 
805 rajveer 146
		<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>
147
 
794 rajveer 148
        <div class="clearBoth"></div>
149
      </div><!-- Block 1 End-->
150
      <div class="clearBoth"></div>
151
      <!-- Block 2 -->	
152
      <div class="padding-top17" style="display: none;" id="newShipAdr">
153
        <!-- Block 2 Right -->
811 rajveer 154
        <div class="shipping-block2-L">
794 rajveer 155
          <h2 class="mid-innerHeading">Other Addresses on Record</h2>
825 rajveer 156
          <div class="shipping-details-scroller">
794 rajveer 157
 
507 rajveer 158
					#foreach($address in $addresses)
825 rajveer 159
            <div class="ship-address-block-address">
794 rajveer 160
              <div class="ship-address-inner">
161
                <div id="shipAddressContainer$address.getId()">
517 rajveer 162
								#if($address.getName())
794 rajveer 163
                  <label>$address.getName()</label><br />
517 rajveer 164
								#end
165
								#if($address.getLine1())
794 rajveer 166
                  <label>$address.getLine1() </label><br />
517 rajveer 167
								#end	
168
								#if($address.getLine1())
794 rajveer 169
                  <label>$address.getLine2()</label><br />
517 rajveer 170
								#end
171
								#if($address.getCity())	
794 rajveer 172
                  <label>$address.getCity()</label><br />
517 rajveer 173
								#end
174
								#if($address.getState())
794 rajveer 175
                  <label>$address.getState()</label><br />
517 rajveer 176
								#end
177
								#if($address.getPin())	
794 rajveer 178
                  <label>Pin: $address.getPin()</label><br />
517 rajveer 179
								#end
180
								#if($address.getPhone())
794 rajveer 181
                  <label>Mob: $address.getPhone() </label><br />
517 rajveer 182
								#end			
794 rajveer 183
 
184
                </div>	
185
                <div class="ship-address-bttn">
186
                  <div class="bigImgButton yellow-image">
1446 varun.gupt 187
					<form action="/shipping?action=change&addressid=$address.getId()" method="post">
188
						<input type="submit" value="Ship to this Address" class="button" />
189
                    </form>
190
                    <!--input type="submit" name="btnSearch" onclick="changeShipAddress('shipAddressContainer$address.getId()')"  id="" value="Ship to this Address" class="button" /-->
794 rajveer 191
                  </div>
192
                </div>
193
                <div class="clearBoth"></div>     
194
              </div>
195
            </div>
507 rajveer 196
					#end
794 rajveer 197
 
198
          </div>	
199
        </div>
200
 
201
 
202
 
203
        <div class="" style="width:424px; float:left;">
204
          <div class="ship-address-block">
205
            <h2>Specify a New Address</h2>
206
            <div class="ship-address-form">
839 vikas 207
              <form name="frmShippingAddress" id="frmShippingAddress" method="post" action="shipping"> <!-- action="./shipping" -->
794 rajveer 208
                <div class="register-row">
839 vikas 209
                  <label><sup>*</sup><span>Name:</span></label>
794 rajveer 210
                  <div class="imgTextBox textbox-image">
1774 varun.gupt 211
                    <input type="text" id="shipName" name="name" value="$fullname" class="textbox" />
794 rajveer 212
                  </div>
213
                  <div class="clearBoth"></div>
507 rajveer 214
                </div>
794 rajveer 215
                <div class="register-row">
839 vikas 216
                  <label><sup>*</sup><span>Address:</span></label>
794 rajveer 217
                  <div class="imgTextBox textbox-image">
218
                    <input type="text" id="shipAddress1" name="line1" value="" class="textbox" />
219
                  </div>
220
                  <div class="clearBoth"></div>
221
                </div>
222
                <div class="register-row">
223
                  <label>&nbsp;</label>
224
                  <div class="imgTextBox textbox-image">
225
                    <input type="text" id="shipAddress2" name="line2" value="" class="textbox" />
226
                  </div>
227
                  <div class="clearBoth"></div>
228
                </div>
229
                <div class="register-row">
839 vikas 230
                  <label for="state"><sup>*</sup><span>State</span></label>
231
				  <div class="select-list imgTextBox">
232
                  <select class="select_state" name="state" id="shipState">
637 rajveer 233
										#include("templates/stateslist.vm")
794 rajveer 234
                  </select>
839 vikas 235
                  </div>
794 rajveer 236
                  <div class="clearBoth"></div>
237
                </div>
238
                <div class="register-row">
239
                  <label><sup>*</sup><span>City:</span></label>
240
                  <div class="imgTextBox textbox-image">
241
                    <input type="text" id="shipCity" name="city" value="" class="textbox"/>
242
                  </div>
243
                  <div class="clearBoth"></div>
244
                </div>
245
                <div class="register-row">
246
                  <label><sup>*</sup><span>Pin Code:</span></label>
247
                  <div class="imgTextBox textbox-image">
248
                    <input type="text" id="shipPin" name="pincode" value="" class="textbox textbox-pincode" style="width: 60px;" />
249
                  </div>
250
                  <div class="clearBoth"></div>
251
                </div>
252
                <div class="register-row">
253
                  <label><sup>*</sup><span>Phone:</span></label>
254
                  <div class="imgTextBox textbox-image">
1774 varun.gupt 255
                    <input type="text" id="shipPhone" name="phone" value="$phonenumber" class="textbox" />
794 rajveer 256
                  </div>
257
                  <div class="clearBoth"></div>
258
                </div>
259
                <div class="ship-address-bttn">
811 rajveer 260
                  <div class="form-button-outer first">
261
                    <div class="bigImgButton floatLeft yellow-image">
262
                      <input type="hidden" id="" name="action" value="add" >
263
                      <input type="submit" name="submitAddress"  id="submitAddress" value="Ship to this Address" class="button" />
264
                    </div>
794 rajveer 265
                  </div>
811 rajveer 266
                  <div class="form-button-outer last">
267
                    <div class="bigImgButton floatLeft yellow-image">
268
                      <input type="button" name="btnSearch" onclick="resetShipForm();" id="" value="Cancel" class="button button1" />
269
                    </div>
794 rajveer 270
                  </div>
271
                  <div class="clearBoth"></div>
272
 
273
 
274
                </div>
275
                <div class="clearBoth"></div>
276
              </form>
277
            </div>
278
          </div>
279
        </div><!-- Block 2 Right End-->
280
 
281
        <div class="clearBoth"></div>
282
      </div><!-- Block 2 End-->	
283
      <div class="clearBoth"></div>
284
    </div><!-- mid inner end-->
285
  </div>
286
  <div class="bottom">
287
    <div class="left">
288
      <div class="right"> &nbsp; </div>
507 rajveer 289
    </div>
290
  </div>
794 rajveer 291
</div>
292
<!-- /Add Shipping Detail End-->