Subversion Repositories SmartDukaan

Rev

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

Rev 2012 Rev 3101
Line 31... Line 31...
31
        <div class="shipping-block1-L">
31
        <div class="shipping-block1-L">
32
          <div class="ship-address-block">
32
          <div class="ship-address-block">
33
			<h2>Shipping Address</h2>
33
			<h2>Shipping Address</h2>
34
            <div class="ship-address-inner" style="height:200px; overflow-y:auto;">
34
            <div class="ship-address-inner" style="height:200px; overflow-y:auto;">
35
              <div id="shipAddressContainer">
35
              <div id="shipAddressContainer">
36
				            #set($shipAddressEmpty = 1)
36
				#set($shipAddressEmpty = 1)
37
							#foreach($address in $addresses)
37
				#foreach($address in $addresses)
38
							#if($defaultid == $address.getId())
38
        			#if($defaultid == $address.getId())
39
							    #set($shipAddressEmpty = 0)
39
        			    #set($shipAddressEmpty = 0)
40
								#if($address.getName())
40
        				#if($address.getName())
41
                <label>$address.getName()</label><br />
41
                        <label>$address.getName()</label><br />
42
								#end
42
        				#end
43
								#if($address.getLine1())
43
        				#if($address.getLine1())
44
                <label>$address.getLine1() </label><br />
44
                        <label>$address.getLine1() </label><br />
45
								#end	
45
        				#end	
46
								#if($address.getLine2())
46
        				#if($address.getLine2())
47
                <label>$address.getLine2()</label><br />
47
                        <label>$address.getLine2()</label><br />
48
								#end
48
        				#end
49
								#if($address.getCity())	
49
        				#if($address.getCity())	
50
                <label>$address.getCity()</label><br />
50
                        <label>$address.getCity()</label><br />
51
								#end
51
        				#end
52
								#if($address.getState())
52
        				#if($address.getState())
53
                <label>$address.getState()</label><br />
53
                        <label>$address.getState()</label><br />
54
								#end
54
        				#end
55
								#if($address.getPin())	
55
        				#if($address.getPin())	
56
                <label>Pin: $address.getPin()</label><br />
56
                        <label>Pin: $address.getPin()</label><br />
57
								#end
57
        				#end
58
								#if($address.getPhone())
58
        				#if($address.getPhone())
59
                <label>Mob: $address.getPhone() </label><br />
59
                        <label>Mob: $address.getPhone() </label><br />
60
								#end			
60
        				#end
61
							#end
61
        			#end
62
							#end
62
				#end
63
							
63
							
64
					#if($shipAddressEmpty!=0)
64
				#if($shipAddressEmpty!=0)
65
                  <p>You do not have a shipping address linked to your profile. Please add one.</p>
65
                <p>You do not have a shipping address linked to your profile. Please add one.</p>
66
					#end
66
				#end
67
              </div>
67
              </div>
68
              <div class="ship-address-bttn" style="margin-top: 20px;">
68
              <div class="ship-address-bttn" style="margin-top: 20px;">
69
                <div class="bigImgButton yellow-image">
69
                <div class="bigImgButton yellow-image">
70
					#if($shipAddressEmpty!=0)
70
				#if($shipAddressEmpty!=0)
71
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Add Shipping Address" class="button" />
71
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Add Shipping Address" class="button" />
72
					#else
72
				#else
73
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Ship to Another Address" class="button" />
73
                  <input type="button" name="addAdrBtn"  id="addAdrBtn" value="Ship to Another Address" class="button" />
74
					#end	
74
				#end	
75
                </div>
75
                </div>
76
		    		
76
		    		
77
              </div>
77
              </div>
78
              <div class="clearBoth"></div>     
78
              <div class="clearBoth"></div>     
79
            </div>
79
            </div>
80
 
80
 
81
          </div>
81
          </div>
82
 
82
 
83
        </div><!-- Block-1 Left End-->
83
        </div><!-- Block-1 Left End-->
84
		
84
		
85
		        <!-- Block-1 Right-->
85
		<!-- Block-1 Right-->
86
				#if($items)
86
		#if($items)
87
        <div class="shipping-block1-R" style="overflow-y:auto;">
87
        <div class="shipping-block1-R" style="overflow-y:auto;">
88
          <table cellpadding="0" cellspacing="0" width="100%" class="estimate-table" >
88
          <table cellpadding="0" cellspacing="0" width="100%" class="estimate-table" >
89
            <thead>
89
            <thead>
90
              <tr>
90
              <tr>
91
                <th width="36%">Item</th>
91
                <th width="36%">Item</th>
Line 93... Line 93...
93
                <th width="10%" class="quantity">Qty.</th>
93
                <th width="10%" class="quantity">Qty.</th>
94
                <th width="25%" class="last">Total Price</th>
94
                <th width="25%" class="last">Total Price</th>
95
              </tr>
95
              </tr>
96
            </thead>
96
            </thead>
97
            <tbody>
97
            <tbody>
98
							#foreach($item in $items)
98
			#foreach($item in $items)
99
								#if($item.get("SHIPPING_TIME") == -1)
99
				#if($item.get("SHIPPING_TIME") == -1)
100
									#set($locationServiceable = 0)
100
					#set($locationServiceable = 0)
101
									#set($messageShippingTime = "Location not serviceable")
101
					#set($messageShippingTime = "Location not serviceable")
102
								#else
102
				#else
103
									#set($locationServiceable = 1)
103
					#set($locationServiceable = 1)
104
									#set($messageShippingTime = "within " + $item.get("SHIPPING_TIME") + " business days")
104
					#set($messageShippingTime = "within " + $item.get("SHIPPING_TIME") + " business days")
105
								#end
105
				#end
106
              <tr>
106
              <tr>
107
                <td>$item.get("ITEM_NAME") </td>
107
                <td>$item.get("ITEM_NAME") </td>
108
                <td>$messageShippingTime</td>
108
                <td>$messageShippingTime</td>
109
                <td class="quantity">$item.get("ITEM_QUANTITY") </td>
109
                <td class="quantity">$item.get("ITEM_QUANTITY") </td>
110
                <td>Rs. $item.get("TOTAL_PRICE") </td>
110
                <td>Rs. $item.get("TOTAL_PRICE") </td>
111
              </tr>
111
              </tr>
112
							#end
112
			#end
113
			#if($couponcode != "")
113
			#if($couponcode != "")
114
				#set($styleTotalAmount = "total-amount")
114
				#set($styleTotalAmount = "total-amount")
115
			#else
115
			#else
116
				#set($styleTotalAmount = "discounted-amount")
116
				#set($styleTotalAmount = "discounted-amount")
117
			#end
117
			#end
Line 124... Line 124...
124
              </tr>
124
              </tr>
125
			  #end
125
			  #end
126
            </tbody>
126
            </tbody>
127
          </table>
127
          </table>
128
          <div align="right" class="proceed-bttn">
128
          <div align="right" class="proceed-bttn">
129
            <label class="floatLeft" style="margin-top: 3px;">We accept all major credit cards and debit cards &nbsp;</label>
-
 
130
			            #if($shipAddressEmpty == 1 || $locationServiceable == 0)
129
			#if($shipAddressEmpty == 1 || $locationServiceable == 0)
131
					        #set($divButtonClass = "imgDisableButton")
130
		        #set($divButtonClass = "imgDisableButton")
132
							#set($disableButton = "disabled=''")
131
				#set($disableButton = "disabled=''")
-
 
132
				#set($message = "Please specify a shipping address")
133
            	        #else
133
	        #else
134
							#set($divButtonClass = "bigImgButton")
134
				#set($divButtonClass = "bigImgButton")
135
							#set($disableButton = "")
135
				#set($disableButton = "")
-
 
136
				#set($message = "Pay using Credit/Debit/ATM/Cash cards, Net Banking or COD")
136
						#end
137
			#end
-
 
138
			<div style="float:left; width:430px; margin-right:5px;">
-
 
139
				<label style="margin-top: 3px;">$message</label>
137
			
140
			</div>
138
			<div class="$divButtonClass floatLeft yellow-image">
141
			<div class="$divButtonClass yellow-image" style="float:right">
139
              <form id="frmProceedToPay" name="frmProceedToPay">
142
              <form id="frmProceedToPay" name="frmProceedToPay" action="/proceed-to-pay" method="post" onsubmit="return trackProceedToPay();">
140
                <input type="hidden" id="addressid" name="addressid" value="$defaultid" />
143
                <input type="hidden" id="addressid" name="addressid" value="$defaultid" />
141
                <input $disableButton type="submit" name="btnSearch"  id="btnProceed" value="Proceed to Pay" class="button" onclick="showPaymentModeSelectionBox();return false;"/>
144
                <input $disableButton type="submit" name="btnSearch"  id="btnProceed" value="Proceed to Pay" class="button"/>
142
              </form>
145
              </form>
143
 
146
 
144
              <div class="clearBoth"></div>
147
              <div class="clearBoth"></div>
145
            </div>
148
            </div>
146
            <div class="clearBoth"></div>
149
            <div class="clearBoth"></div>
147
          </div> 
150
          </div> 
148
        </div>
151
        </div>
149
				#else
152
		#else
150
        <div class="shipping-block1-R" style="height:225px; overflow-y:auto;">
153
        <div class="shipping-block1-R" style="height:225px; overflow-y:auto;">
151
          <label class="floatLeft" style="margin-top: 3px;">Your cart is empty. &nbsp;</label>
154
          <label class="floatLeft" style="margin-top: 3px;">Your cart is empty. &nbsp;</label>
152
        </div>	
155
        </div>	
153
				#end
156
		#end
154
		<!-- Block-1 Right End-->
157
		<!-- Block-1 Right End-->
155
		
158
		
156
		<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>
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>
157
			
160
			
158
        <div class="clearBoth"></div>
161
        <div class="clearBoth"></div>
Line 163... Line 166...
163
        <!-- Block 2 Right -->
166
        <!-- Block 2 Right -->
164
        <div class="shipping-block2-L">
167
        <div class="shipping-block2-L">
165
          <h2 class="mid-innerHeading">Other Addresses on Record</h2>
168
          <h2 class="mid-innerHeading">Other Addresses on Record</h2>
166
          <div class="shipping-details-scroller">
169
          <div class="shipping-details-scroller">
167
 
170
 
168
					#foreach($address in $addresses)
171
			#foreach($address in $addresses)
169
            <div class="ship-address-block-address">
172
            <div class="ship-address-block-address">
170
              <div class="ship-address-inner">
173
              <div class="ship-address-inner">
171
                <div id="shipAddressContainer$address.getId()">
174
                <div id="shipAddressContainer$address.getId()">
172
								#if($address.getName())
175
								#if($address.getName())
173
                  <label>$address.getName()</label><br />
176
                  <label>$address.getName()</label><br />