Subversion Repositories SmartDukaan

Rev

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

Rev 13863 Rev 13901
Line 69... Line 69...
69
			$prefix = "SHA".$storeProduct['source_id'];
69
			$prefix = "SHA".$storeProduct['source_id'];
70
			$tag = $prefix.time();
70
			$tag = $prefix.time();
71
			if($storeProduct['source_id'] == 2){
71
			if($storeProduct['source_id'] == 2){
72
				$url_parts = parse_url($storeProduct['marketPlaceUrl']);
72
				$url_parts = parse_url($storeProduct['marketPlaceUrl']);
73
				// $url = "http://dl.flipkart.com/dl".$url_parts['path'].'?'.$url_parts['query'];
73
				// $url = "http://dl.flipkart.com/dl".$url_parts['path'].'?'.$url_parts['query'];
-
 
74
				if(isset($url_parts['query'])) {
74
				$url = "http://m.flipkart.com/".$url_parts['path'].'?'.$url_parts['query'];
75
					$url = "http://m.flipkart.com/".$url_parts['path'].'?'.$url_parts['query'];
-
 
76
				}else{
-
 
77
					$url = "http://m.flipkart.com/".$url_parts['path'];
-
 
78
				}
75
			} elseif($storeProduct['source_id'] == 3) {
79
			} elseif($storeProduct['source_id'] == 3) {
76
				$url_parts = parse_url($storeProduct['marketPlaceUrl']);
80
				$url_parts = parse_url($storeProduct['marketPlaceUrl']);
-
 
81
				if(isset($url_parts['query'])) {
77
				$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
82
					$url = "http://snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
-
 
83
				}else{
-
 
84
					$url = "http://snapdeal.com".$url_parts['path'].'?utm_source=aff_prog&utm_campaign=afts&offer_id=17';
-
 
85
				}
78
			}else{
86
			}else{
79
				$url = $storeProduct['marketPlaceUrl'];
87
				$url = $storeProduct['marketPlaceUrl'];
80
			}
88
			}
81
			if( strpos($url, '?') === false ) {
89
			if( strpos($url, '?') === false ) {
82
				$firstChar = '?';
90
				$firstChar = '?';