| 17840 |
manish.sha |
1 |
<script type="text/javascript" src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
|
| 17794 |
naman |
2 |
|
|
|
3 |
<style>
|
| 17840 |
manish.sha |
4 |
#footer {
|
|
|
5 |
position: fixed;
|
|
|
6 |
/*height:50px;*/
|
|
|
7 |
/*background-color:red;*/
|
|
|
8 |
bottom: 0px;
|
|
|
9 |
left: 0px;
|
|
|
10 |
right: 0px;
|
|
|
11 |
margin-bottom: 0px;
|
| 17794 |
naman |
12 |
}
|
|
|
13 |
|
| 17840 |
manish.sha |
14 |
#message,#message_success {
|
|
|
15 |
position: fixed;
|
|
|
16 |
/*height:50px;*/
|
|
|
17 |
/*background-color:red;*/
|
|
|
18 |
/*background-color: white;*/
|
|
|
19 |
top: 0px;
|
|
|
20 |
left: 0px;
|
|
|
21 |
right: 0px;
|
|
|
22 |
margin-top: 0px;
|
|
|
23 |
z-index: 10;
|
| 17794 |
naman |
24 |
}
|
|
|
25 |
|
| 17840 |
manish.sha |
26 |
.addressselect {
|
|
|
27 |
background-color: #D9FACF;
|
| 17794 |
naman |
28 |
}
|
| 17840 |
manish.sha |
29 |
|
| 17794 |
naman |
30 |
input[type=radio].css-checkbox {
|
| 17840 |
manish.sha |
31 |
position: absolute;
|
|
|
32 |
z-index: -1000;
|
|
|
33 |
left: -1000px;
|
|
|
34 |
overflow: hidden;
|
|
|
35 |
clip: rect(0, 0, 0, 0);
|
|
|
36 |
height: 1px;
|
|
|
37 |
width: 1px;
|
|
|
38 |
margin: -1px;
|
|
|
39 |
padding: 0;
|
|
|
40 |
border: 0;
|
|
|
41 |
}
|
| 17794 |
naman |
42 |
|
| 17840 |
manish.sha |
43 |
input[type=radio].css-checkbox+label.css-label {
|
|
|
44 |
padding-left: 21px;
|
|
|
45 |
padding-bottom:10px;
|
|
|
46 |
height: 16px;
|
|
|
47 |
display: inline-block;
|
|
|
48 |
line-height: 16px;
|
|
|
49 |
background-repeat: no-repeat;
|
|
|
50 |
background-position: 0 0;
|
|
|
51 |
/*font-size:16px;*/
|
|
|
52 |
vertical-align: middle;
|
|
|
53 |
cursor: pointer;
|
|
|
54 |
}
|
| 17794 |
naman |
55 |
|
| 17840 |
manish.sha |
56 |
input[type=radio].css-checkbox:checked+label.css-label {
|
|
|
57 |
background-position: 0 -16px;
|
|
|
58 |
}
|
| 17794 |
naman |
59 |
|
| 17840 |
manish.sha |
60 |
label.css-label {
|
|
|
61 |
background-image: url(../img/radio.png);
|
|
|
62 |
-webkit-touch-callout: none;
|
|
|
63 |
-webkit-user-select: none;
|
|
|
64 |
-khtml-user-select: none;
|
|
|
65 |
-moz-user-select: none;
|
|
|
66 |
-ms-user-select: none;
|
|
|
67 |
user-select: none;
|
| 17794 |
naman |
68 |
}
|
| 17882 |
naman |
69 |
|
|
|
70 |
|
|
|
71 |
.custom_class
|
|
|
72 |
{color: red;}
|
| 17794 |
naman |
73 |
</style>
|
| 17882 |
naman |
74 |
<?php
|
|
|
75 |
if($message != null){?>
|
|
|
76 |
<script>
|
|
|
77 |
$(document).ready(function(){
|
|
|
78 |
$('#message').empty();
|
|
|
79 |
$('#message').append("Location is not serviceable...");
|
|
|
80 |
$('#message').removeClass('hidden');
|
|
|
81 |
|
|
|
82 |
setTimeout(function() {
|
|
|
83 |
$('#message').addClass('hidden');
|
|
|
84 |
}, 2000);
|
|
|
85 |
});
|
|
|
86 |
</script>
|
|
|
87 |
<?php }?>
|
|
|
88 |
<div class="modal fade" id="loadingModal">
|
|
|
89 |
<div class="modal-dialog">
|
|
|
90 |
<div class="modal-content">
|
|
|
91 |
<div class="modal-body">
|
|
|
92 |
<div class="text-center">
|
|
|
93 |
<img src="/img/ajax-loader.gif"/>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div><!-- /.modal-content -->
|
|
|
97 |
</div><!-- /.modal-dialog -->
|
|
|
98 |
</div>
|
| 17794 |
naman |
99 |
<div class="alert alert-danger hidden" id="message"></div>
|
|
|
100 |
<div class="alert alert-success hidden" id="message_success"></div>
|
|
|
101 |
<div class='container' style='margin-bottom:50px;'>
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
| 17882 |
naman |
106 |
<div class='row' style="padding-bottom:55px;">
|
| 17794 |
naman |
107 |
|
|
|
108 |
|
|
|
109 |
<div class= 'row'>
|
|
|
110 |
<div class='col-xs-12' style="background-color:white;margin-top:5px;">
|
| 17882 |
naman |
111 |
<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>
|
| 17794 |
naman |
112 |
<br>
|
|
|
113 |
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|
|
|
116 |
<div class='col-xs-12' style='background-color:white;padding:40px;padding:3px 20px;'>
|
| 17882 |
naman |
117 |
|
| 17794 |
naman |
118 |
<div style='background-color:#f8f8f8;padding:5px;'>
|
|
|
119 |
<?php
|
|
|
120 |
for($i=0;$i<count($firstshowaddress);$i++){?>
|
|
|
121 |
|
|
|
122 |
<?php if($i==3):?>
|
|
|
123 |
<div id='showmoreaddressdropdown' style='display:none;'>
|
|
|
124 |
<?php endif;?>
|
|
|
125 |
<?php //if(count($firstshowaddress)>$i):?>
|
| 17882 |
naman |
126 |
<div style = 'height:60px;padding:4px;' id = "address<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>" class='myaddress <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "addressselect";}?>'>
|
|
|
127 |
|
|
|
128 |
<input type="radio" class="css-checkbox" id='<?php echo $address['addresses'][$firstshowaddress[$i]]['id'];?>' name="selectedaddress" <?php if($defaultselectedaddress == $address['addresses'][$firstshowaddress[$i]]['id']){echo "checked";}?>>
|
|
|
129 |
|
|
|
130 |
<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'];?>">
|
| 17794 |
naman |
131 |
<?php
|
| 17882 |
naman |
132 |
if(isset($address['addresses'][$firstshowaddress[$i]]['line1']) && !empty($address['addresses'][$firstshowaddress[$i]]['line1']))
|
|
|
133 |
{echo "Address: ",$address['addresses'][$firstshowaddress[$i]]['line1'];}
|
|
|
134 |
if(isset($address['addresses'][$firstshowaddress[$i]]['line2']) && !empty($address['addresses'][$firstshowaddress[$i]]['line2']))
|
|
|
135 |
{echo ",",$address['addresses'][$firstshowaddress[$i]]['line2'];}
|
|
|
136 |
if(isset($address['addresses'][$firstshowaddress[$i]]['city']) && !empty($address['addresses'][$firstshowaddress[$i]]['city']))
|
|
|
137 |
{echo "<br>",$address['addresses'][$firstshowaddress[$i]]['city'];}
|
|
|
138 |
if(isset($address['addresses'][$firstshowaddress[$i]]['state']) && !empty($address['addresses'][$firstshowaddress[$i]]['state']))
|
|
|
139 |
{echo ", ",$address['addresses'][$firstshowaddress[$i]]['state'];}
|
|
|
140 |
if(isset($address['addresses'][$firstshowaddress[$i]]['pin']) && !empty($address['addresses'][$firstshowaddress[$i]]['pin']))
|
|
|
141 |
{echo ",",$address['addresses'][$firstshowaddress[$i]]['pin'];}
|
| 17794 |
naman |
142 |
?>
|
|
|
143 |
</label>
|
|
|
144 |
|
|
|
145 |
</div><hr style='margin:0px;padding:0px;border-color:#58d936;'>
|
|
|
146 |
<?php //endif;?>
|
|
|
147 |
|
|
|
148 |
<?php if($i>3 && $i==(count($firstshowaddress)-1)):?>
|
|
|
149 |
</div>
|
|
|
150 |
<!-- <center><button class='btn btn-default btn-xs' id='showmore'>Show More</button></center> -->
|
|
|
151 |
<?php endif;?>
|
|
|
152 |
|
|
|
153 |
<?php }?>
|
|
|
154 |
</div>
|
|
|
155 |
</div>
|
|
|
156 |
<?php if(count($firstshowaddress)>3):?>
|
|
|
157 |
<center><div class='btn btn-default btn-xs' id='showmore'>Show More</div></center>
|
|
|
158 |
<?php endif;?>
|
|
|
159 |
</div>
|
|
|
160 |
<!-- End of address section -->
|
|
|
161 |
|
|
|
162 |
<!-- Cart section started -->
|
|
|
163 |
<div class='row' style='padding:0px;' id='footer'>
|
|
|
164 |
<div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'>
|
| 17840 |
manish.sha |
165 |
<h4>Total payable Amount: ₹ <?php echo number_format($totalPayable);?></h4>
|
| 17847 |
manish.sha |
166 |
<a href="#" style='padding-right:2px;color:blue;font-size:15px;' class="confirmprepaid"><u>Other Pay Option</u></a>
|
| 17882 |
naman |
167 |
<button class="btn btn-success confirmcheckout pull-right" >Confirm Order via COD</button>
|
| 17794 |
naman |
168 |
</div>
|
|
|
169 |
</div>
|
|
|
170 |
|
|
|
171 |
<!-- Cart section end -->
|
|
|
172 |
</div>
|
|
|
173 |
|