| Line 6... |
Line 6... |
| 6 |
$('span#totalPayable').text(' ₹ 0');
|
6 |
$('span#totalPayable').text(' ₹ 0');
|
| 7 |
$('input.submit_check').prop( "disabled", true );
|
7 |
$('input.submit_check').prop( "disabled", true );
|
| 8 |
}else{
|
8 |
}else{
|
| 9 |
$('input.submit_check').prop( "disabled", false );
|
9 |
$('input.submit_check').prop( "disabled", false );
|
| 10 |
}
|
10 |
}
|
| 11 |
var totalPayable = <?php echo $totalPayable;?>;
|
- |
|
| 12 |
var creditLimit = <?php echo $creditLimit;?>;
|
- |
|
| 13 |
var creditTicketSize = <?php echo $creditTicketSize;?>;
|
- |
|
| 14 |
|
- |
|
| 15 |
if(cart_details == undefined || creditTicketSize>totalPayable || totalPayable>=creditLimit){
|
- |
|
| 16 |
$("input.submit_check[data-name='credit']").prop( "disabled", true );
|
- |
|
| 17 |
}else{
|
- |
|
| 18 |
$("input.submit_check[data-name='credit']").prop( "disabled", false );
|
- |
|
| 19 |
}
|
- |
|
| 20 |
|
- |
|
| 21 |
if (window.history && window.history.pushState) {
|
- |
|
| 22 |
$(window).on('popstate', function() {
|
- |
|
| 23 |
$('#myModal').modal('hide');
|
- |
|
| 24 |
$("#cartloader").addClass('hidden');
|
- |
|
| 25 |
if(typeof history.checkoutForm != "undefined"){
|
- |
|
| 26 |
history.checkoutForm.submit();
|
- |
|
| 27 |
}
|
- |
|
| 28 |
});
|
- |
|
| 29 |
}
|
- |
|
| 30 |
var footertop = $(window).height();
|
11 |
var footertop = $(window).height();
|
| 31 |
setInterval(function() {
|
12 |
setInterval(function() {
|
| 32 |
if(parseInt(footertop)!=parseInt($(window).height())){
|
13 |
if(parseInt(footertop)!=parseInt($(window).height())){
|
| 33 |
$("div#footer").hide();
|
14 |
$("div#footer").hide();
|
| 34 |
}else{
|
15 |
}else{
|
| Line 74... |
Line 55... |
| 74 |
|
55 |
|
| 75 |
|
56 |
|
| 76 |
|
57 |
|
| 77 |
});
|
58 |
});
|
| 78 |
</script>
|
59 |
</script>
|
| 79 |
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
|
- |
|
| - |
|
60 |
|
| 80 |
<style>
|
61 |
<style>
|
| 81 |
|
62 |
|
| 82 |
.link {
|
63 |
.link {
|
| 83 |
background:none!important;
|
64 |
background:none!important;
|
| 84 |
color:blue;
|
65 |
color:blue;
|
| Line 213... |
Line 194... |
| 213 |
left: 0px;
|
194 |
left: 0px;
|
| 214 |
right: 0px;
|
195 |
right: 0px;
|
| 215 |
margin-top: 0px;
|
196 |
margin-top: 0px;
|
| 216 |
z-index: 10;
|
197 |
z-index: 10;
|
| 217 |
}
|
198 |
}
|
| 218 |
#cartloader{
|
- |
|
| 219 |
position:absolute;
|
- |
|
| 220 |
/*top:40%;*/
|
- |
|
| 221 |
left:50%;
|
- |
|
| 222 |
z-index:2001;
|
- |
|
| 223 |
}
|
199 |
|
| 224 |
</style>
|
200 |
</style>
|
| 225 |
<div class="alert alert-danger hidden" id="message"></div>
|
201 |
<div class="alert alert-danger hidden" id="message"></div>
|
| 226 |
<div class="text-center hidden" id="cartloader">
|
- |
|
| 227 |
<br><br>
|
- |
|
| 228 |
<div class="hexdots-loader"></div>
|
- |
|
| 229 |
</div>
|
- |
|
| 230 |
<div class='container' style='margin-bottom:50px;'>
|
202 |
<div class='container' style='margin-bottom:50px;'>
|
| 231 |
<form method="post" action="#" name='form2' id='form2' class="address-form">
|
203 |
<form method="post" action="#" name='form2' id='form2' class="address-form">
|
| 232 |
<div class='row' style="padding-bottom:55px;">
|
204 |
<div class='row' style="padding-bottom:55px;">
|
| 233 |
<div class='col-xs-12' style='padding:0px'>
|
205 |
<div class='col-xs-12' style='padding:0px'>
|
| 234 |
<div class="shipping-cont">
|
206 |
<div class="shipping-cont">
|
| Line 303... |
Line 275... |
| 303 |
</fieldset>
|
275 |
</fieldset>
|
| 304 |
|
276 |
|
| 305 |
|
277 |
|
| 306 |
</div>
|
278 |
</div>
|
| 307 |
</div>
|
279 |
</div>
|
| 308 |
|
- |
|
| 309 |
<div class="modal fade" id="myModal">
|
- |
|
| 310 |
<div class="modal-dialog">
|
- |
|
| 311 |
<div class="modal-content"
|
- |
|
| 312 |
style="background-color: #f0f0f0; color: #555;">
|
- |
|
| 313 |
<div class="modal-body">
|
- |
|
| 314 |
<p id="confirmOrderText" addressId="" checkoutType="" style="color: #ff0000;" class="text-center"></p>
|
- |
|
| 315 |
</div>
|
- |
|
| 316 |
<div class="modal-footer">
|
- |
|
| 317 |
<button type="button" class="btn btn-md pull-left" id="changeOption"
|
- |
|
| 318 |
style="background-color: #58d936; color: #fff;">
|
- |
|
| 319 |
<strong>Change Option<br>(विकल्प बदलें)</strong>
|
- |
|
| 320 |
</button>
|
- |
|
| 321 |
<button type="button" class="btn btn-md pull-right"
|
- |
|
| 322 |
id="orderNow" style="background-color: #58d936; color: #fff;">
|
- |
|
| 323 |
<strong>Order Now<br>(अभी खरीदें)</strong>
|
- |
|
| 324 |
</button>
|
- |
|
| 325 |
</div>
|
- |
|
| 326 |
</div>
|
- |
|
| 327 |
<!-- /.modal-content -->
|
- |
|
| 328 |
</div>
|
- |
|
| 329 |
<!-- /.modal-dialog -->
|
- |
|
| 330 |
</div>
|
- |
|
| 331 |
<!-- /.modal -->
|
- |
|
| 332 |
|
- |
|
| 333 |
|
280 |
|
| 334 |
<div class='row' style='padding:0px;' id='footer'>
|
281 |
<div class='row' style='padding:0px;' id='footer'>
|
| 335 |
<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
|
282 |
<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
|
| 336 |
<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> ₹ <?php echo number_format($totalPayable);?></span></h4>
|
283 |
<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> ₹ <?php echo number_format($totalPayable);?></span></h4>
|
| 337 |
<?php if($creditorAssociated):?>
|
284 |
<?php if($creditorAssociated):?>
|
| 338 |
<h5>Confirm Order: Choose Option</h5>
|
- |
|
| 339 |
<?php if($creditTicketSize<=$totalPayable):?>
|
- |
|
| 340 |
<?php if($creditLimit>=$totalPayable):?>
|
- |
|
| 341 |
<?php if($codAvailable):?>
|
- |
|
| 342 |
<div class="col-xs-12" style="margin-left: 20px;">
|
- |
|
| 343 |
<div class="col-xs-4">
|
- |
|
| 344 |
<input type="submit" class="btn btn-md submit_check"
|
285 |
<input type="submit" value="Save & Continue" class="btn btn-success submit_check" data-name="add"></input>
|
| 345 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="other_option" value="Other"></input>
|
- |
|
| 346 |
</div>
|
- |
|
| 347 |
<div class="col-xs-4">
|
- |
|
| 348 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 349 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="codoption" value="COD"></input>
|
- |
|
| 350 |
</div>
|
- |
|
| 351 |
<div class="col-xs-4" style="padding:0px;">
|
- |
|
| 352 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 353 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;padding-right: 30px;padding-left: 30px;" data-name="creditoption" value="Credit">Credit</input>
|
- |
|
| 354 |
<br>
|
- |
|
| 355 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
- |
|
| 356 |
</div>
|
- |
|
| 357 |
</div>
|
- |
|
| 358 |
<?php else:?>
|
- |
|
| 359 |
<div class="col-xs-12" style="margin-left: 20px;">
|
- |
|
| 360 |
<div class="col-xs-4">
|
- |
|
| 361 |
<span
|
- |
|
| 362 |
style='padding-right: 2px; color: red; font-size: 12px; " margin: 0px 10px 0px 0px;'>*COD
|
- |
|
| 363 |
Not Available</span>
|
- |
|
| 364 |
</div>
|
- |
|
| 365 |
<div class="col-xs-4">
|
- |
|
| 366 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 367 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="other_option" value="Other"></input>
|
- |
|
| 368 |
</div>
|
- |
|
| 369 |
<div class="col-xs-4" style="padding:0px;">
|
- |
|
| 370 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 371 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;padding-right: 30px;padding-left: 30px;" data-name="creditoption" value="Credit">Credit</input>
|
- |
|
| 372 |
<br>
|
- |
|
| 373 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
- |
|
| 374 |
</div>
|
- |
|
| 375 |
</div>
|
- |
|
| 376 |
<?php endif;?>
|
- |
|
| 377 |
<?php else:?>
|
286 |
<?php else:?>
|
| 378 |
<span style='color: red; font-size: 11px; " margin: 0px 10px 0px 0px;'>* Your Credit Limit is less than Order Amount. <br>* आपकी उपलब्ध क्रेडिट लिमिट आर्डर राशि से कम है। </span>
|
287 |
<?php if($taxInvoiceEnabledUser):?>
|
| 379 |
<?php if($codAvailable):?>
|
- |
|
| 380 |
<div class="col-xs-12" style="margin-left: 20px;">
|
- |
|
| 381 |
<div class="col-xs-4">
|
- |
|
| 382 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 383 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="other_option" value="Other"></input>
|
- |
|
| 384 |
</div>
|
- |
|
| 385 |
<div class="col-xs-4">
|
- |
|
| 386 |
<input type="submit" class="btn btn-md submit_check"
|
288 |
<input type="submit" value="Save & Continue" class="btn btn-success submit_check" data-name="add"></input>
|
| 387 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="codoption" value="COD"></input>
|
- |
|
| 388 |
</div>
|
- |
|
| 389 |
<div class="col-xs-4" style="padding:0px;">
|
- |
|
| 390 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 391 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;padding-right: 30px;padding-left: 30px;" data-name="creditoption" value="Credit"></input>
|
- |
|
| 392 |
<br>
|
- |
|
| 393 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
- |
|
| 394 |
</div>
|
- |
|
| 395 |
</div>
|
- |
|
| 396 |
<?php else:?>
|
- |
|
| 397 |
<div class="col-xs-12" style="margin-left: 20px;">
|
- |
|
| 398 |
<div class="col-xs-4">
|
- |
|
| 399 |
<span
|
- |
|
| 400 |
style='padding-right: 2px; color: red; font-size: 12px; " margin: 0px 10px 0px 0px;'>*COD
|
- |
|
| 401 |
Not Available</span>
|
- |
|
| 402 |
</div>
|
- |
|
| 403 |
<div class="col-xs-4">
|
- |
|
| 404 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 405 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="other_option" value="Other"></input>
|
- |
|
| 406 |
</div>
|
- |
|
| 407 |
<div class="col-xs-4" style="padding:0px;">
|
- |
|
| 408 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 409 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;padding-right: 30px;padding-left: 30px;" data-name="creditoption" value="Credit"></input>
|
- |
|
| 410 |
<br>
|
- |
|
| 411 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
- |
|
| 412 |
</div>
|
- |
|
| 413 |
</div>
|
- |
|
| 414 |
<?php endif;?>
|
- |
|
| 415 |
<?php endif;?>
|
- |
|
| 416 |
<?php else:?>
|
289 |
<?php else:?>
|
| 417 |
<span style='color: red; font-size: 11px; " margin: 0px 10px 0px 0px;'>* Minimum Order Amount Should be ₹ <?php echo number_format($creditTicketSize);?> for Credit <br>* क्रेडिट के लिए न्यूनतम आर्डर राशि ₹ <?php echo number_format($creditTicketSize);?> होनी चाहिए ।</span>
|
- |
|
| 418 |
<?php if($codAvailable):?>
|
290 |
<?php if($codAvailable):?>
|
| 419 |
<div class="col-xs-12" style="margin-left: 20px;">
|
- |
|
| 420 |
<div class="col-xs-4">
|
- |
|
| 421 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 422 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="other_option" value="Other"></input>
|
291 |
<input type="submit" value="Other Pay Option" class="link submit_check" data-name="other_option"></input>
|
| 423 |
</div>
|
- |
|
| 424 |
<div class="col-xs-4">
|
- |
|
| 425 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 426 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="codoption" value="COD"></input>
|
292 |
<input type="submit" value="Confirm Order via COD" class="btn btn-success pull-right submit_check" data-name="cod"></input>
|
| 427 |
</div>
|
- |
|
| 428 |
<div class="col-xs-4" style="padding:0px;">
|
- |
|
| 429 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 430 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;padding-right: 30px;padding-left: 30px;" data-name="creditoption" value="Credit"></input>
|
- |
|
| 431 |
<br>
|
- |
|
| 432 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
- |
|
| 433 |
</div>
|
- |
|
| 434 |
</div>
|
- |
|
| 435 |
<?php else:?>
|
293 |
<?php else:?>
|
| 436 |
<div class="col-xs-12" style="margin-left: 20px;">
|
- |
|
| 437 |
<div class="col-xs-4">
|
- |
|
| 438 |
<span
|
- |
|
| 439 |
style='padding-right: 2px; color: red; font-size: 12px; " margin: 0px 10px 0px 0px;'>*COD
|
294 |
<span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
|
| 440 |
Not Available</span>
|
- |
|
| 441 |
</div>
|
- |
|
| 442 |
<div class="col-xs-4">
|
- |
|
| 443 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 444 |
style="margin: 10px 20px 0px 0px; background-color: #5cb85c; color: #fff;" data-name="other_option" value="Other"></input>
|
295 |
<input type="submit" value="Other Pay Option" class="btn btn-success pull-right submit_check" data-name="other_option"></input>
|
| 445 |
</div>
|
- |
|
| 446 |
<div class="col-xs-4" style="padding:0px;">
|
- |
|
| 447 |
<input type="submit" class="btn btn-md submit_check"
|
- |
|
| 448 |
style="margin: 10px 20px 0px 0px; background-color: #B4CAB4; color: #fff;padding-right: 30px;padding-left: 30px;" data-name="creditoption" value="Credit"></input>
|
- |
|
| 449 |
<br>
|
- |
|
| 450 |
<span style="font-size: 8px;">Credit Limit<span style="color:#ff0000;font-size:12px;"> ₹ <?php echo number_format($creditLimit);?></span></span>
|
- |
|
| 451 |
</div>
|
- |
|
| 452 |
</div>
|
- |
|
| 453 |
<?php endif;?>
|
296 |
<?php endif;?>
|
| 454 |
<?php endif;?>
|
297 |
<?php endif;?>
|
| 455 |
<?php else:?>
|
- |
|
| 456 |
<?php if($codAvailable):?>
|
- |
|
| 457 |
<input type="submit" value="Other Pay Option" class="link submit_check" data-name="other_option"></input>
|
- |
|
| 458 |
<input type="submit" value="Confirm Order via COD" class="btn btn-success pull-right submit_check" data-name="cod"></input>
|
- |
|
| 459 |
<?php else:?>
|
- |
|
| 460 |
<span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
|
- |
|
| 461 |
<input type="submit" value="Other Pay Option" class="btn btn-success pull-right submit_check" data-name="other_option"></input>
|
- |
|
| 462 |
<?php endif;?>
|
- |
|
| 463 |
<?php endif;?>
|
298 |
<?php endif;?>
|
| 464 |
</div>
|
299 |
</div>
|
| 465 |
</div>
|
300 |
</div>
|
| 466 |
</form>
|
301 |
</form>
|
| 467 |
</div>
|
302 |
</div>
|
| 468 |
|
303 |
|