Subversion Repositories SmartDukaan

Rev

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

Rev 14139 Rev 14150
Line 72... Line 72...
72
				Cache::write($cachekey,$store,'month');			
72
				Cache::write($cachekey,$store,'month');			
73
			}
73
			}
74
			$prefix = "SHA".$storeProduct['source_id'];
74
			$prefix = "SHA".$storeProduct['source_id'];
75
			$tag = $prefix.time();
75
			$tag = $prefix.time();
76
			if($storeProduct['source_id'] == 2){
76
			if($storeProduct['source_id'] == 2){
77
				$url_parts = parse_url($storeProduct['marketPlaceUrl']);
77
				// $url_parts = parse_url($storeProduct['marketPlaceUrl']);
78
/*
78
/*
79
				if(isset($url_parts['query'])) {
79
				if(isset($url_parts['query'])) {
80
					$url = "http://m.flipkart.com".$url_parts['path'].'?'.$url_parts['query'];
80
					$url = "http://m.flipkart.com".$url_parts['path'].'?'.$url_parts['query'];
81
				}else{
81
				}else{
82
					$url = "http://m.flipkart.com".$url_parts['path'];
82
					$url = "http://m.flipkart.com".$url_parts['path'];
Line 89... Line 89...
89
				if(isset($url_parts['query'])) {
89
				if(isset($url_parts['query'])) {
90
					$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
90
					$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
91
				}else{
91
				}else{
92
					$url = "http://m.snapdeal.com".$url_parts['path'].'?utm_source=aff_prog&utm_campaign=afts&offer_id=17';
92
					$url = "http://m.snapdeal.com".$url_parts['path'].'?utm_source=aff_prog&utm_campaign=afts&offer_id=17';
93
				}
93
				}
-
 
94
			} elseif($storeProduct['source_id'] == 4){
-
 
95
				$next = "&next=".$storeProduct['marketPlaceUrl'];					
-
 
96
				$url = $this->getAutoLoginUrl($userId,$next);
94
			}else{
97
			}else{
95
				$url = $storeProduct['marketPlaceUrl'];
98
				$url = $storeProduct['marketPlaceUrl'];
96
			}
99
			}
97
			if( strpos($url, '?') === false ) {
100
			if( strpos($url, '?') === false ) {
98
				$firstChar = '?';
101
				$firstChar = '?';