Subversion Repositories SmartDukaan

Rev

Rev 20413 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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