Subversion Repositories SmartDukaan

Rev

Rev 18768 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17877 manish.sha 1
<div class="container">
2
	<div class="well text-center">
18768 manish.sha 3
		<?php $cartRedirect=false;?>
17877 manish.sha 4
		<?php if(strpos($next,'pay-success') !== false) : ?>
5
			Please wait while orders are being processed.
6
		<?php else:?>
18768 manish.sha 7
			<?php if(isset($redirectToCart)):
8
				$cartRedirect=true;?>
9
				Some Issue while placing Order thorough Credit Option. Please process again.
10
			<?php else:?>
11
				Please wait while you are being redirected to Merchant Site.
12
			<?php endif;?>
13
 
17877 manish.sha 14
		<?php endif;?>
15
 
16
	</div>
17
</div>
18
<script type="text/javascript">
19
$(function(){
20
	var redirectStr = '<?php echo $next;?>';
18768 manish.sha 21
	var cartRed = '<?php echo $cartRedirect;?>';
22
	cartRed = cartRed.toString();
17877 manish.sha 23
	redirectStr = redirectStr.toString();
18822 manish.sha 24
	if(cartRed=='1'){
18768 manish.sha 25
		document.location = apihost + 'cartdetails/?user_id='+me;
26
	}else{
27
		if(redirectStr.indexOf("pay-success") > -1){
28
			localStorage.removeItem('cart_details');
29
		}
30
		document.location = '<?php echo $redirectUrl;?>';
17877 manish.sha 31
	}
32
});
33
</script>