Subversion Repositories SmartDukaan

Rev

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

Rev 20389 Rev 20402
Line 86... Line 86...
86
				Cache::write($cachekey,$store,'month');			
86
				Cache::write($cachekey,$store,'month');			
87
			}
87
			}
88
			$prefix = "SHA".$storeId;
88
			$prefix = "SHA".$storeId;
89
			$tag = $prefix.time();
89
			$tag = $prefix.time();
90
			if($storeId == 2){				
90
			if($storeId == 2){				
91
				// $url = str_replace('www','m',$url);
-
 
92
				$url = str_replace('www.','',$url);
91
				$urlComponents = parse_url($url);
93
                $url = str_replace('http://','',$url);
-
 
94
                $url = str_replace('flipkart.com','http://dl.flipkart.com/dl',$url);
92
                $url = 'http://dl.flipkart.com/dl/'.$urlComponents['path'].'?'.$urlComponents['query'];
95
			} elseif($storeId == 3) {
93
			} elseif($storeId == 3) {
96
				//$tag='SHASNAPDEAL123';
94
				//$tag='SHASNAPDEAL123';
97
				$url_parts = parse_url($url);
95
				$url_parts = parse_url($url);
98
				$url_parts['path'] = str_replace('viewAllSellers/','',$url_parts['path']);//quickfix for snapdeal
96
				$url_parts['path'] = str_replace('viewAllSellers/','',$url_parts['path']);//quickfix for snapdeal
99
				if(isset($url_parts['query'])) {
97
				if(isset($url_parts['query'])) {