| 17882 |
naman |
1 |
<script type="text/javascript" src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
|
| 17794 |
naman |
2 |
<script>
|
|
|
3 |
$(document).ready(function(){
|
| 17960 |
manish.sha |
4 |
var cart_details = localStorage.getItem("cart_details");
|
|
|
5 |
if(cart_details == undefined){
|
|
|
6 |
$('span#totalPayable').text(' ₹ 0');
|
| 17966 |
manish.sha |
7 |
$('input.submit_check').prop( "disabled", true );
|
| 17960 |
manish.sha |
8 |
}else{
|
| 17966 |
manish.sha |
9 |
$('input.submit_check').prop( "disabled", false );
|
| 17960 |
manish.sha |
10 |
}
|
| 17947 |
manish.sha |
11 |
var footertop = $(window).height();
|
|
|
12 |
setInterval(function() {
|
|
|
13 |
if(parseInt(footertop)!=parseInt($(window).height())){
|
|
|
14 |
$("div#footer").hide();
|
|
|
15 |
}else{
|
|
|
16 |
$("div#footer").show();
|
|
|
17 |
}
|
|
|
18 |
},100);
|
| 17794 |
naman |
19 |
$("#state").val('<?php echo $getstateval;?>');
|
| 17843 |
naman |
20 |
|
|
|
21 |
$('#pin').keyup(function(){
|
|
|
22 |
var pin_val = $(this).val();
|
|
|
23 |
if(pin_val.length == 6){
|
|
|
24 |
$.ajax({
|
|
|
25 |
method: "GET",
|
|
|
26 |
url: "<?php echo $base_url;?>shippings/getstate/"+pin_val,
|
|
|
27 |
},'json')
|
|
|
28 |
.done(function(msg){
|
|
|
29 |
msg = eval('('+msg+')');
|
|
|
30 |
if(msg=="{}")
|
|
|
31 |
{
|
|
|
32 |
$("#cities").empty();
|
|
|
33 |
$("#state").val("");
|
|
|
34 |
}
|
|
|
35 |
else
|
|
|
36 |
{
|
|
|
37 |
$("#state").val(msg['state']);
|
|
|
38 |
$("#cities").empty();
|
|
|
39 |
for(var i in msg['cities']){
|
|
|
40 |
var html = "<option value="+msg['cities'][i]+">"+msg['cities'][i]+"</option>"
|
|
|
41 |
$("#cities").append(html);
|
|
|
42 |
}
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
});
|
|
|
46 |
}
|
|
|
47 |
else{
|
|
|
48 |
$("#cities").empty();
|
|
|
49 |
$("#state").val("");
|
|
|
50 |
}
|
|
|
51 |
});
|
|
|
52 |
|
|
|
53 |
|
| 17794 |
naman |
54 |
|
| 17882 |
naman |
55 |
|
| 17794 |
naman |
56 |
|
|
|
57 |
|
|
|
58 |
});
|
|
|
59 |
</script>
|
| 18734 |
manish.sha |
60 |
|
| 17794 |
naman |
61 |
<style>
|
|
|
62 |
|
| 17914 |
amit.gupta |
63 |
.link {
|
|
|
64 |
background:none!important;
|
| 17939 |
amit.gupta |
65 |
color:blue;
|
| 17914 |
amit.gupta |
66 |
border:none;
|
|
|
67 |
padding:0!important;
|
|
|
68 |
font: inherit;
|
|
|
69 |
/*border is optional*/
|
| 17939 |
amit.gupta |
70 |
border-bottom:1px solid blue;
|
| 17914 |
amit.gupta |
71 |
cursor: pointer;
|
|
|
72 |
}
|
|
|
73 |
|
| 17794 |
naman |
74 |
#footer{
|
|
|
75 |
position:fixed;
|
|
|
76 |
/*height:50px;*/
|
|
|
77 |
/*background-color:red;*/
|
|
|
78 |
bottom:0px;
|
|
|
79 |
left:0px;
|
|
|
80 |
right:0px;
|
|
|
81 |
margin-bottom:0px;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
* {
|
|
|
85 |
padding: 0;
|
|
|
86 |
margin: 0;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
| 17843 |
naman |
94 |
|
| 17794 |
naman |
95 |
select {
|
|
|
96 |
width: 100%;
|
|
|
97 |
appearance: none;
|
|
|
98 |
-webkit-appearance: none;
|
|
|
99 |
border: #58d936 solid 1px;
|
|
|
100 |
color: #555555;
|
|
|
101 |
border-radius: 6px;
|
|
|
102 |
outline: none;
|
|
|
103 |
padding: 4px;
|
|
|
104 |
display: block;
|
|
|
105 |
box-sizing: border-box;
|
|
|
106 |
-webkit-box-sizing: border-box;
|
|
|
107 |
-moz-box-sizing: border-box;
|
|
|
108 |
/*font: normal 1.4em/1.2em Helvetica, Arial, sans-serif;*/
|
|
|
109 |
/*margin: 2px 0 8px 0;*/
|
|
|
110 |
margin: 2px 0 0px 0;
|
|
|
111 |
background: url('../images/dropdown.PNG') no-repeat 99% 16px, #ffffff;
|
|
|
112 |
background-size: 20px, 100%;
|
|
|
113 |
}
|
|
|
114 |
.shipping-cont {
|
|
|
115 |
margin:7px 2px;
|
|
|
116 |
padding: 12px 7px;
|
|
|
117 |
background: white;
|
|
|
118 |
}
|
|
|
119 |
.shipping-cont form {
|
|
|
120 |
padding: 0px 0;
|
|
|
121 |
}
|
|
|
122 |
.shipping-cont form fieldset {
|
|
|
123 |
border: none;
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
.shipping-cont label span {
|
|
|
127 |
color: red;
|
|
|
128 |
}
|
|
|
129 |
/*.shipping-cont input[type="submit"] {
|
|
|
130 |
float: left;
|
|
|
131 |
width: 100%;
|
|
|
132 |
margin: 10px 0;
|
|
|
133 |
background: #ff7201;
|
|
|
134 |
color: #ffffff;
|
|
|
135 |
font: normal 1.8em/1.2em Helvetica, Arial, sans-serif;
|
|
|
136 |
text-align: center;
|
|
|
137 |
padding: 5px 0;
|
|
|
138 |
text-transform: uppercase;
|
|
|
139 |
appearance: none;
|
|
|
140 |
-webkit-appearance: none;
|
|
|
141 |
-moz-appearance: none;
|
|
|
142 |
border: none;
|
|
|
143 |
}*/
|
|
|
144 |
|
|
|
145 |
label{
|
|
|
146 |
margin:0px;
|
|
|
147 |
padding:0px;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
input[type="text"],
|
|
|
151 |
input[type="number"],
|
|
|
152 |
input[type="date"],
|
|
|
153 |
textarea {
|
|
|
154 |
width: 100%;
|
|
|
155 |
appearance: none;
|
|
|
156 |
-webkit-appearance: none;
|
|
|
157 |
-moz-appearance: none;
|
|
|
158 |
border: #58d936 solid 1px;
|
|
|
159 |
color: #555;
|
|
|
160 |
border-radius: 6px;
|
|
|
161 |
outline: none;
|
|
|
162 |
padding: 5px;
|
| 17843 |
naman |
163 |
/*display: block;*/
|
| 17794 |
naman |
164 |
box-sizing: border-box;
|
|
|
165 |
-webkit-box-sizing: border-box;
|
|
|
166 |
-moz-box-sizing: border-box;
|
|
|
167 |
font: normal 1.2em Helvetica, Arial, sans-serif;
|
|
|
168 |
/*margin: 2px 0 8px 0;*/
|
|
|
169 |
margin: 2px 0 0px 0;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
textarea{
|
|
|
173 |
resize: none;
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
.error_msg {
|
|
|
177 |
padding: 5px 5px 5px 28px;
|
|
|
178 |
display: block;
|
|
|
179 |
border: #fc1f1f dashed 1px;
|
|
|
180 |
color: #fc1f1f;
|
|
|
181 |
font: normal 1.4em/1.2em Helvetica, Arial, sans-serif;
|
|
|
182 |
margin: 0 5px;
|
|
|
183 |
background-size: 20px;
|
|
|
184 |
margin-bottom: 10px;
|
|
|
185 |
}
|
|
|
186 |
|
|
|
187 |
.form_submit{
|
|
|
188 |
width:100%;
|
|
|
189 |
}
|
|
|
190 |
|
| 17998 |
naman |
191 |
#message{
|
|
|
192 |
position: fixed;
|
|
|
193 |
top: 0px;
|
|
|
194 |
left: 0px;
|
|
|
195 |
right: 0px;
|
|
|
196 |
margin-top: 0px;
|
|
|
197 |
z-index: 10;
|
|
|
198 |
}
|
| 18734 |
manish.sha |
199 |
|
| 17794 |
naman |
200 |
</style>
|
| 17998 |
naman |
201 |
<div class="alert alert-danger hidden" id="message"></div>
|
| 17794 |
naman |
202 |
<div class='container' style='margin-bottom:50px;'>
|
| 17914 |
amit.gupta |
203 |
<form method="post" action="#" name='form2' id='form2' class="address-form">
|
|
|
204 |
<div class='row' style="padding-bottom:55px;">
|
|
|
205 |
<div class='col-xs-12' style='padding:0px'>
|
|
|
206 |
<div class="shipping-cont">
|
|
|
207 |
<div id="error" class="error_msg" style="display:none">
|
| 17794 |
naman |
208 |
</div>
|
| 18854 |
manish.sha |
209 |
|
|
|
210 |
<div class="modal fade" id="loadingModal">
|
|
|
211 |
<div class="modal-dialog">
|
|
|
212 |
<div class="modal-content">
|
|
|
213 |
<div class="modal-body">
|
|
|
214 |
<div class="text-center">
|
|
|
215 |
<img src="/img/ajax-loader.gif" />
|
|
|
216 |
</div>
|
|
|
217 |
</div>
|
|
|
218 |
</div>
|
|
|
219 |
<!-- /.modal-content -->
|
|
|
220 |
</div>
|
|
|
221 |
<!-- /.modal-dialog -->
|
|
|
222 |
</div>
|
|
|
223 |
|
| 17914 |
amit.gupta |
224 |
<fieldset>
|
|
|
225 |
<h4>Add New Address:
|
|
|
226 |
<!-- <input type="submit" name="submit" value="Save" class='btn btn-success' id='form_submit' style='float:right;'/> -->
|
|
|
227 |
</h4>
|
|
|
228 |
|
|
|
229 |
<!-- <label>Name<span>*</span></label> -->
|
|
|
230 |
<input type="text" id="name" name="name" placeholder="Enter name*" value="<?php echo $user_name;?>" required/>
|
|
|
231 |
<!-- <label>Address<span>*</span></label> -->
|
|
|
232 |
<textarea rows="2" id="line1" name="line1" placeholder="Address*" required></textarea>
|
|
|
233 |
|
|
|
234 |
<div class='row' style='padding-bottom:5px'>
|
|
|
235 |
<div class='col-xs-6' style='padding:0px 5px 0px 0px ;'>
|
|
|
236 |
<datalist id="cities">
|
|
|
237 |
</datalist>
|
|
|
238 |
<input type="text" placeholder="City*" id="city" name="city" list="cities" required/>
|
|
|
239 |
|
|
|
240 |
<!-- <label>Phone<span>*</span></label> -->
|
| 19043 |
naman |
241 |
<input type="text" id="phone" value="<?php echo $user_contact;?>" placeholder="Contact number*" name="phone"/>
|
| 17794 |
naman |
242 |
</div>
|
| 17914 |
amit.gupta |
243 |
<div class='col-xs-6' style='padding:0px 0px 0px 5px ;'>
|
| 18040 |
amit.gupta |
244 |
<!-- <label>Pincode<span>*</span></label> -->
|
| 19043 |
naman |
245 |
<input placeholder="Pincode*" value='<?php echo $pinval;?>' type="text" id="pin" name="pin" />
|
| 18040 |
amit.gupta |
246 |
|
| 17914 |
amit.gupta |
247 |
<!-- <label>State<span>*</span></label> -->
|
|
|
248 |
<select id="state" name="state" required>
|
|
|
249 |
<option value="">Select State</option>
|
|
|
250 |
<option value="Andaman & Nicobar Island">Andaman & Nicobar Island</option>
|
|
|
251 |
<option value="Andhra Pradesh">Andhra Pradesh</option>
|
|
|
252 |
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
|
|
|
253 |
<option value="Assam">Assam</option>
|
|
|
254 |
<option value="Bihar">Bihar</option>
|
|
|
255 |
<option value="Chandigarh">Chandigarh</option>
|
|
|
256 |
<option value="Chattisgarh">Chattisgarh</option>
|
|
|
257 |
<option value="Dadra & Nagar Haveli">Dadra & Nagar Haveli</option>
|
|
|
258 |
<option value="Daman & Diu">Daman & Diu</option>
|
|
|
259 |
<option value="Delhi">Delhi</option>
|
|
|
260 |
<option value="Goa">Goa</option>
|
|
|
261 |
<option value="Gujarat">Gujrat</option>
|
|
|
262 |
<option value="Haryana">Haryana</option>
|
|
|
263 |
<option value="Himachal Pradesh">Himachal Pradesh</option>
|
|
|
264 |
<option value="Jammu & Kashmir">Jammu & Kashmir</option>
|
|
|
265 |
<option value="Jharkhand">Jharkhand</option>
|
|
|
266 |
<option value="Karnataka">Karnataka</option>
|
|
|
267 |
<option value="Kerala">Kerala</option>
|
|
|
268 |
<option value="Lakshadweep">Lakshadweep</option>
|
|
|
269 |
<option value="Madhya Pradesh">Madhya Pradesh</option>
|
|
|
270 |
<option value="Maharashtra">Maharashtra</option>s
|
|
|
271 |
<option value="Manipur">Manipur</option>
|
|
|
272 |
<option value="Meghalaya">Meghalaya</option>
|
|
|
273 |
<option value="Mizoram">Mizoram</option>
|
|
|
274 |
<option value="Nagaland">Nagaland</option>
|
|
|
275 |
<option value="Orissa">Orissa</option>
|
|
|
276 |
<option value="Pondicherry">Pondicherry</option>
|
|
|
277 |
<option value="Punjab">Punjab</option>
|
|
|
278 |
<option value="Rajasthan">Rajasthan</option>
|
|
|
279 |
<option value="Sikkim">Sikkim</option>
|
|
|
280 |
<option value="Tamil Nadu">Tamil Nadu</option>
|
|
|
281 |
<option value="Telangana">Telangana</option>
|
|
|
282 |
<option value="Tripura">Tripura</option>
|
|
|
283 |
<option value="Uttar Pradesh">Uttar Pradesh</option>
|
|
|
284 |
<option value="Uttarakhand">Uttarakhand</option>
|
|
|
285 |
<option value="West Bengal">West Bengal</option>
|
|
|
286 |
</select>
|
|
|
287 |
|
|
|
288 |
</div>
|
|
|
289 |
</div>
|
|
|
290 |
</fieldset>
|
| 17794 |
naman |
291 |
|
|
|
292 |
|
|
|
293 |
</div>
|
|
|
294 |
</div>
|
|
|
295 |
|
| 17882 |
naman |
296 |
<div class='row' style='padding:0px;' id='footer'>
|
| 18438 |
manish.sha |
297 |
<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
|
|
|
298 |
<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> ₹ <?php echo number_format($totalPayable);?></span></h4>
|
| 18718 |
manish.sha |
299 |
<?php if($creditorAssociated):?>
|
| 18747 |
manish.sha |
300 |
<input type="submit" value="Save & Continue" class="col-xs-12 btn btn-success submit_check" data-name="add"></input>
|
| 18734 |
manish.sha |
301 |
<?php else:?>
|
|
|
302 |
<?php if($taxInvoiceEnabledUser):?>
|
| 18747 |
manish.sha |
303 |
<input type="submit" value="Save & Continue" class="col-xs-12 btn btn-success submit_check" data-name="add"></input>
|
| 18718 |
manish.sha |
304 |
<?php else:?>
|
| 18734 |
manish.sha |
305 |
<?php if($codAvailable):?>
|
|
|
306 |
<input type="submit" value="Other Pay Option" class="link submit_check" data-name="other_option"></input>
|
|
|
307 |
<input type="submit" value="Confirm Order via COD" class="btn btn-success pull-right submit_check" data-name="cod"></input>
|
|
|
308 |
<?php else:?>
|
|
|
309 |
<span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
|
|
|
310 |
<input type="submit" value="Other Pay Option" class="btn btn-success pull-right submit_check" data-name="other_option"></input>
|
|
|
311 |
<?php endif;?>
|
| 18718 |
manish.sha |
312 |
<?php endif;?>
|
|
|
313 |
<?php endif;?>
|
| 17882 |
naman |
314 |
</div>
|
|
|
315 |
</div>
|
| 17914 |
amit.gupta |
316 |
</form>
|
| 17794 |
naman |
317 |
</div>
|