Subversion Repositories SmartDukaan

Rev

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

Rev 15926 Rev 16679
Line 4... Line 4...
4
	</div>
4
	</div>
5
</div>
5
</div>
6
<?php echo $this->element('unlikemodal');?>
6
<?php echo $this->element('unlikemodal');?>
7
<script type="text/javascript">
7
<script type="text/javascript">
8
$(function(){
8
$(function(){
9
	if(<?php echo $store['Store']['id'];?> == 5) {
9
	var store = <?php echo $store['Store']['id'];?>;
-
 
10
	var url = '<?php echo $url;?>';
-
 
11
	if( store == 5) {
-
 
12
		url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
10
		//check if shopclues is active or not
13
		//check if shopclues is active or not
11
		active = getCookie('shopcluesActive',1);
14
		active = getCookie('shopcluesActive',1);
12
		if(active && active == 'true'){
15
		if(active && active == 'true'){
13
			document.location = '<?php echo $url;?>';	
16
			document.location = url;	
14
			pma.send('apk','shopclues','active',me,null);
17
			pma.send('apk','shopclues','active',me,null);
15
		}else{
18
		}else{
16
			pma.send('apk','shopclues','inactive',me,null);
19
			pma.send('apk','shopclues','inactive',me,null);
17
			$('#loadingModal').modal('hide');
20
			$('#loadingModal').modal('hide');
18
			showShopcluesPopup('<?php echo $url;?>');
21
			showShopcluesPopup(url);
19
		}
22
		}
-
 
23
	} else if(store == 6 ) {
-
 
24
  		//display paytm help
-
 
25
  		if(needToDisplayPaytmPopup(me)){
-
 
26
  			showPaytmHelpPopup();
-
 
27
	  		$('#oktatabyebye').on('click',function(){
-
 
28
	  			redirectToPaytm(url);	
-
 
29
	  		});	
-
 
30
  		}else{
-
 
31
  			redirectToPaytm(url);	
-
 
32
  		}
-
 
33
	} else if (store == 2) {
-
 
34
		url = 'http://mobilehotindia.com/r.html?'+Base64.encode(url);
-
 
35
		document.location = url;				
-
 
36
	} else if(store == 3){
-
 
37
		url = '/r.html?'+Base64.encode(url);
-
 
38
		document.location = url;				
20
	} else {
39
	} else {
21
		document.location = '<?php echo $url;?>';
40
		document.location = url;
22
	}	
41
	}	
23
});
42
});
24
</script>
43
</script>
25
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
44
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
26
45