Subversion Repositories SmartDukaan

Rev

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

Rev 14345 Rev 14346
Line 72... Line 72...
72
				$url = $storeProduct['marketPlaceUrl'];
72
				$url = $storeProduct['marketPlaceUrl'];
73
				$storeId = 	$storeProduct['source_id'];
73
				$storeId = 	$storeProduct['source_id'];
74
				$available_price = $storeProduct['available_price'];
74
				$available_price = $storeProduct['available_price'];
75
			}
75
			}
76
			$cachekey = 'store-'.$storeId;
76
			$cachekey = 'store-'.$storeId;
77
//			$store = Cache::read($cachekey,'month');
77
			$store = Cache::read($cachekey,'month');
78
			if(empty($storeId)) {
78
			if(empty($store)) {
79
				$store = $this->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeProduct['source_id'])));
79
				$store = $this->Store->find('first',array('recursive'=>-1,'conditions'=>array('id'=>$storeProduct['source_id'])));
80
				Cache::write($cachekey,$store,'month');			
80
				Cache::write($cachekey,$store,'month');			
81
			}
81
			}
82
			$prefix = "SHA".$storeId;
82
			$prefix = "SHA".$storeId;
83
			$tag = $prefix.time();
83
			$tag = $prefix.time();
Line 93... Line 93...
93
				}
93
				}
94
			} elseif($storeId == 4){
94
			} elseif($storeId == 4){
95
				$next = "&next=".str_replace('www','m',$url);	
95
				$next = "&next=".str_replace('www','m',$url);	
96
				$url = $this->getAutoLoginUrl($userId,$next);
96
				$url = $this->getAutoLoginUrl($userId,$next);
97
				$url .= '?utm_source=profitmandi';
97
				$url .= '?utm_source=profitmandi';
98
			}else{
98
			}/*else{
99
				$url = $storeProduct['marketPlaceUrl'];
99
				$url = $storeProduct['marketPlaceUrl'];
100
			}*/
100
			}*/
101
			if( strpos($url, '?') === false ) {
101
			if( strpos($url, '?') === false ) {
102
				$firstChar = '?';
102
				$firstChar = '?';
103
			} else {
103
			} else {