Rev 17959 | Rev 18438 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script type="text/javascript" src="/js/checkout.js?v=<?php echo $staticversion;?>"></script><script type="text/javascript">$(document).ready(function(){var cart_details = localStorage.getItem("cart_details");if(cart_details == undefined){$('span#totalPayable').text(' ₹ 0');$('button.confirmcheckout').prop( "disabled", true );$('.confirmprepaid').addClass('confirmprepaidDisabled').removeClass('confirmprepaid');}else{$('button.confirmcheckout').prop( "disabled", false );$('.confirmprepaidDisabled').addClass('confirmprepaid').removeClass('confirmprepaidDisabled');}});</script><style>#footer {position: fixed;/*height:50px;*//*background-color:red;*/bottom: 0px;left: 0px;right: 0px;margin-bottom: 0px;}#message,#message_success {position: fixed;/*height:50px;*//*background-color:red;*//*background-color: white;*/top: 0px;left: 0px;right: 0px;margin-top: 0px;z-index: 10;}.addressselect {background-color: #D9FACF;}input[type=radio].css-checkbox {position: absolute;z-index: -1000;left: -1000px;overflow: hidden;clip: rect(0, 0, 0, 0);height: 1px;width: 1px;margin: -1px;padding: 0;border: 0;}input[type=radio].css-checkbox+label.css-label {padding-left: 21px;padding-bottom:10px;height: 16px;display: inline-block;line-height: 16px;background-repeat: no-repeat;background-position: 0 0;/*font-size:16px;*/vertical-align: middle;cursor: pointer;}input[type=radio].css-checkbox:checked+label.css-label {background-position: 0 -16px;}label.css-label {background-image: url(../img/radio.png);-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}.custom_class{color: red;}</style><?phpif($message != null){?><script>$(document).ready(function(){$('#message').empty();$('#message').append("Location is not serviceable...");$('#message').removeClass('hidden');setTimeout(function() {$('#message').addClass('hidden');}, 2000);});</script><?php }?><div class="modal fade" id="loadingModal"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="text-center"><img src="/img/ajax-loader.gif"/></div></div></div><!-- /.modal-content --></div><!-- /.modal-dialog --></div><div class="alert alert-danger hidden" id="message"></div><div class="alert alert-success hidden" id="message_success"></div><div class='container' style='margin-bottom:50px;'><div class='row' style="padding-bottom:55px;"><div class= 'row'><div class='col-xs-12' style="background-color:white;margin-top:5px;"><h4>Shipping Address: <a href= "<?php echo $base_url;?>shippings/add/<?php echo $user_name.'/'.$user_contact;?>" class='btn btn-success btn-xs' style='float:right;'>Add New Address</a></h4><br></div></div><div class='col-xs-12' style='background-color:white;padding:40px;padding:3px 20px;'><div style='background-color:#f8f8f8;padding:5px;'><?phpfor($i=0;$i<count($firstshowaddress);$i++){?><?php if($i==3):?><div id='showmoreaddressdropdown' style='display:none;'><?php endif;?><?php //if(count($firstshowaddress)>$i):?><div style = 'min-height:80px;padding:4px;' id = "address<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>" class='myaddress <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "addressselect";}?>'><input type="radio" class="css-checkbox" id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>' value='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>' name="selectedaddress" <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "checked";}?>><label for="<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>" class="css-label radGroup2" data-pin="<?php echo $address['addresses'][$firstshowaddress[$i]]['pin'];?>" data-id="<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>"><?phpif(isset($address['addresses'][$firstshowaddress[$i]]['line1']) && !empty($address['addresses'][$firstshowaddress[$i]]['line1'])){echo "Address: ",$address['addresses'][$firstshowaddress[$i]]['line1'];}if(isset($address['addresses'][$firstshowaddress[$i]]['line2']) && !empty($address['addresses'][$firstshowaddress[$i]]['line2'])){echo ",",$address['addresses'][$firstshowaddress[$i]]['line2'];}if(isset($address['addresses'][$firstshowaddress[$i]]['city']) && !empty($address['addresses'][$firstshowaddress[$i]]['city'])){echo "<br>",$address['addresses'][$firstshowaddress[$i]]['city'];}if(isset($address['addresses'][$firstshowaddress[$i]]['state']) && !empty($address['addresses'][$firstshowaddress[$i]]['state'])){echo ", ",$address['addresses'][$firstshowaddress[$i]]['state'];}if(isset($address['addresses'][$firstshowaddress[$i]]['pin']) && !empty($address['addresses'][$firstshowaddress[$i]]['pin'])){echo ",",$address['addresses'][$firstshowaddress[$i]]['pin'];}?></label></div><hr style='margin:0px;padding:0px;border-color:#58d936;'><?php //endif;?><?php if($i>3 && $i==(count($firstshowaddress)-1)):?></div><!-- <center><button class='btn btn-default btn-xs' id='showmore'>Show More</button></center> --><?php endif;?><?php }?></div></div><?php if(count($firstshowaddress)>3):?><center><div class='btn btn-default btn-xs' id='showmore'>Show More</div></center><?php endif;?></div><!-- End of address section --><!-- Cart section started --><div class='row' style='padding:0px;' id='footer'><div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'><h4>Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> ₹ <?php echo number_format($totalPayable);?></span></h4><?php if($codAvailable):?><a href="#" style='padding-right:2px;color:blue;font-size:15px;' class="confirmprepaid"><u>Other Pay Option</u></a><button class="btn btn-success confirmcheckout pull-right" >Confirm Order via COD</button><?php else:?><span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span><button class="btn btn-success confirmprepaid pull-right" >Other Pay Option</button><?php endif;?></div></div><!-- Cart section end --></div>