Subversion Repositories SmartDukaan

Rev

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

Rev 19036 Rev 19039
Line 2... Line 2...
2
	src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
2
	src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
3
<script type="text/javascript">
3
<script type="text/javascript">
4
$(document).ready(function(){
4
$(document).ready(function(){
5
	var alpad = " "+($('#footer').height()-45)+"px";
5
	var alpad = " "+($('#footer').height()-45)+"px";
6
	$('#addresslist').css("margin-bottom",alpad);
6
	$('#addresslist').css("margin-bottom",alpad);
-
 
7
 
-
 
8
	if($('.myaddress').hasClass('addressselect')){
-
 
9
			var pin_val = $('.addressselect').data('pinval');
-
 
10
			$.ajax({
-
 
11
	            method: "GET",
-
 
12
	            url:  "<?php echo $base_url;?>shippings/getstate/"+pin_val,
-
 
13
	        },'json')
-
 
14
	        .done(function(msg){ 
-
 
15
	        	msg = eval('('+msg+')');
-
 
16
	        	if(msg['state'].trim() == "Delhi")                  
-
 
17
	        	{
-
 
18
	        		$(".taxbanner").removeClass('hidden');		
-
 
19
	        	}
-
 
20
	        });
-
 
21
		}
-
 
22
	
7
	var cart_details = localStorage.getItem("cart_details");
23
	var cart_details = localStorage.getItem("cart_details");
8
	if(cart_details == undefined){
24
	if(cart_details == undefined){
9
		$('span#totalPayable').text(' ₹ 0');
25
		$('span#totalPayable').text(' ₹ 0');
10
		$('button.confirmcheckout').prop( "disabled", true );
26
		$('button.confirmcheckout').prop( "disabled", true );
11
		$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');
27
		$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');
Line 172... Line 188...
172
    <div class="hexdots-loader"></div>         
188
    <div class="hexdots-loader"></div>         
173
</div>
189
</div>
174
<div class='container' style='margin-bottom: 50px;' id ="addresslist">
190
<div class='container' style='margin-bottom: 50px;' id ="addresslist">
175
	
191
	
176
	<div class='row' style="padding-bottom: 55px;">
192
	<div class='row' style="padding-bottom: 55px;">
177
	<?php if($stateres == "Delhi"):?>
193
	<?php //if($stateres == "Delhi"):?>
178
	<div class="taxbanner" style="margin-top: 5px;"><img src = "../img/vat-tax.gif" width="100%"></div>
194
	<div class="taxbanner hidden" style="margin-top: 5px;"><img src = "../img/vat-tax.gif" width="100%"></div>
179
	<?php endif;?>
195
	<?php //endif;?>
180
 
196
 
181
		<div class='row'>
197
		<div class='row'>
182
			<div class='col-xs-12'
198
			<div class='col-xs-12'
183
				style="background-color: white; margin-top: 5px;">
199
				style="background-color: white; margin-top: 5px;">
184
				
200
				
Line 202... Line 218...
202
			<?php if($i==3):?>
218
			<?php if($i==3):?>
203
				<div id='showmoreaddressdropdown' style='display: none;'>
219
				<div id='showmoreaddressdropdown' style='display: none;'>
204
				<?php endif;?>
220
				<?php endif;?>
205
				<?php //if(count($firstshowaddress)>$i):?>
221
				<?php //if(count($firstshowaddress)>$i):?>
206
					<div style='min-height: 80px; padding: 4px;'
222
					<div style='min-height: 80px; padding: 4px;'
207
						id="address<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>"
223
						id="address<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>" data-pinval="<?php echo $address['addresses'][$firstshowaddress[$i]]['pin']; ?>"
208
						class='myaddress <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "addressselect";}?>'>
224
						class='myaddress <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "addressselect";}?>'>
209
 
225
 
210
						<input type="radio" class="css-checkbox"
226
						<input type="radio" class="css-checkbox"
211
							id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
227
							id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
212
							value='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'
228
							value='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>'