Subversion Repositories SmartDukaan

Rev

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

Rev 13633 Rev 13698
Line 57... Line 57...
57
			$storeProduct = $this->StoreProduct->find('first',$options);
57
			$storeProduct = $this->StoreProduct->find('first',$options);
58
			$store = $this->StoreProduct->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeProduct['StoreProduct']['store_id'])));
58
			$store = $this->StoreProduct->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeProduct['StoreProduct']['store_id'])));
59
			$prefix = "SHA".$storeProduct['StoreProduct']['store_id'];
59
			$prefix = "SHA".$storeProduct['StoreProduct']['store_id'];
60
			$tag = $prefix.time();
60
			$tag = $prefix.time();
61
			if($storeProduct['StoreProduct']['store_id'] == 2){
61
			if($storeProduct['StoreProduct']['store_id'] == 2){
62
				$url = str_replace('http://www', 'http://dl', $storeProduct['StoreProduct']['url']);
62
				$url_parts = parse_url($storeProduct['StoreProduct']['url']);
-
 
63
				$url = "http://dl.flipkart.com/dl".$url_parts['path'].'?'.$url_parts['query'];
63
			} elseif($storeProduct['StoreProduct']['store_id'] == 3) {
64
			} elseif($storeProduct['StoreProduct']['store_id'] == 3) {
64
				$url = $storeProduct['StoreProduct']['url']."?utm_source=aff_prog&utm_campaign=afts&offer_id=17";
65
				$url = $storeProduct['StoreProduct']['url']."?utm_source=aff_prog&utm_campaign=afts&offer_id=17";
65
			}else{
66
			}else{
66
				$url = $storeProduct['StoreProduct']['url'];
67
				$url = $storeProduct['StoreProduct']['url'];
67
			}
68
			}