Subversion Repositories SmartDukaan

Rev

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

Rev 18438 Rev 18718
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
	    }
11
		var footertop = $(window).height();
30
		var footertop = $(window).height();
12
		setInterval(function() {
31
		setInterval(function() {
13
			if(parseInt(footertop)!=parseInt($(window).height())){
32
			if(parseInt(footertop)!=parseInt($(window).height())){
14
				$("div#footer").hide();
33
				$("div#footer").hide();
15
			}else{
34
			}else{
Line 55... Line 74...
55
	
74
	
56
 
75
 
57
 
76
 
58
	});
77
	});
59
</script>
78
</script>
60
 
-
 
-
 
79
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
61
<style>
80
<style>
62
 
81
 
63
.link {
82
.link {
64
     background:none!important;
83
     background:none!important;
65
     color:blue;
84
     color:blue;
Line 194... Line 213...
194
	left: 0px;
213
	left: 0px;
195
	right: 0px;
214
	right: 0px;
196
	margin-top: 0px;
215
	margin-top: 0px;
197
	z-index: 10;
216
	z-index: 10;
198
}
217
}
-
 
218
#cartloader{
-
 
219
    position:absolute;
-
 
220
    /*top:40%;*/
-
 
221
    left:50%;
-
 
222
    z-index:2001;
199
 
223
}
200
</style>
224
</style>
201
<div class="alert alert-danger hidden" id="message"></div>
225
<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>
202
<div class='container' style='margin-bottom:50px;'>
230
<div class='container' style='margin-bottom:50px;'>
203
	<form method="post" action="#" name='form2' id='form2' class="address-form"> 
231
	<form method="post" action="#" name='form2' id='form2' class="address-form"> 
204
		<div class='row' style="padding-bottom:55px;">
232
		<div class='row' style="padding-bottom:55px;">
205
			<div class='col-xs-12' style='padding:0px'>
233
			<div class='col-xs-12' style='padding:0px'>
206
				<div class="shipping-cont">
234
				<div class="shipping-cont">
Line 275... Line 303...
275
			</fieldset>
303
			</fieldset>
276
 
304
 
277
 
305
 
278
		</div>
306
		</div>
279
	</div>
307
	</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 -->
280
 
332
 
281
 
333
 
282
	<div class='row' style='padding:0px;' id='footer'>
334
	<div class='row' style='padding:0px;' id='footer'>
283
		<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
335
		<div class='col-xs-12' style='background-color:white;padding: 10px 20px 20px 20px; width:100%;'>
284
			<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> &#8377; <?php echo number_format($totalPayable);?></span></h4>
336
			<h4 style="margin: 0px;margin-bottom: 8px;">Total payable Amount: <span style="color:#ff0000;" id="totalPayable"> &#8377; <?php echo number_format($totalPayable);?></span></h4>
-
 
337
			<?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"
-
 
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;"> &#8377; <?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;"> &#8377; <?php echo number_format($creditLimit);?></span></span>
-
 
374
								</div>
-
 
375
							</div>
-
 
376
						<?php endif;?>
-
 
377
					<?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>
-
 
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"
-
 
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;"> &#8377; <?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;"> &#8377; <?php echo number_format($creditLimit);?></span></span>
-
 
412
								</div>
-
 
413
							</div>
-
 
414
						<?php endif;?>
-
 
415
					<?php endif;?>
-
 
416
				<?php else:?>
-
 
417
						<span style='color: red; font-size: 11px; " margin: 0px 10px 0px 0px;'>* Minimum Order Amount Should be  &#8377; <?php echo number_format($creditTicketSize);?> for Credit <br>* क्रेडिट के लिए न्यूनतम आर्डर राशि  &#8377; <?php echo number_format($creditTicketSize);?> होनी चाहिए ।</span>
-
 
418
						<?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>
-
 
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>
-
 
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;"> &#8377; <?php echo number_format($creditLimit);?></span></span>
-
 
433
								</div>
-
 
434
							</div>
-
 
435
						<?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
-
 
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>
-
 
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;"> &#8377; <?php echo number_format($creditLimit);?></span></span>
-
 
451
								</div>
-
 
452
							</div>
-
 
453
						<?php endif;?>
-
 
454
				<?php endif;?>
-
 
455
			<?php else:?>
285
			<?php if($codAvailable):?>
456
				<?php if($codAvailable):?>
286
			<input type="submit" value="Other Pay Option" class="link submit_check" data-name="other_option"></input>
457
				<input type="submit" value="Other Pay Option" class="link submit_check" data-name="other_option"></input>
287
			<input type="submit" value="Confirm Order via COD" class="btn btn-success pull-right submit_check" data-name="cod"></input>
458
				<input type="submit" value="Confirm Order via COD" class="btn btn-success pull-right submit_check" data-name="cod"></input>
288
            <?php else:?>
459
	            <?php else:?>
289
            <span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
460
	            <span style='padding-right:2px;color:red;font-size:15px;'>*COD Not Available</span>
290
            <input type="submit" value="Other Pay Option" class="btn btn-success pull-right submit_check" data-name="other_option"></input>
461
	            <input type="submit" value="Other Pay Option" class="btn btn-success pull-right submit_check" data-name="other_option"></input>
291
            <?php endif;?>
462
	            <?php endif;?>
-
 
463
			<?php endif;?>
292
		</div>
464
		</div>
293
	</div>
465
	</div>
294
	</form>
466
	</form>
295
</div>
467
</div>
296
468