Subversion Repositories SmartDukaan

Rev

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

Rev 13992 Rev 13994
Line 46... Line 46...
46
		$storeId = $this->request->query('store_id');
46
		$storeId = $this->request->query('store_id');
47
		$userId = $this->request->query('user_id');
47
		$userId = $this->request->query('user_id');
48
		$this->log(print_r($this->request->data,1),'order_trackers');
48
		$this->log(print_r($this->request->data,1),'order_trackers');
49
		if ($this->request->is('post')) {
49
		if ($this->request->is('post')) {
50
			$url = $this->apihost."/track/user/$userId?storeId=$storeId";
50
			$url = $this->apihost."/track/user/$userId?storeId=$storeId";
-
 
51
			$params = array('url'=>$$this->request->data['url'],'html'=>$this->request->data['html']);
-
 
52
			$jsonVar = json_encode($params);
-
 
53
			return $this->make_request($url,$jsonVar);
51
			$this->make_request($url,$this->request->data);
54
			// $this->make_request($url,$this->request->data);
52
			$result = array('success'=>true,'message'=>'html stored');
55
			$result = array('success'=>true,'message'=>'html stored');
53
			$this->response->type('json');
56
			$this->response->type('json');
54
			$this->layout = 'ajax';
57
			$this->layout = 'ajax';
55
			$this->set(array(
58
			$this->set(array(
56
			    'result' => $result,
59
			    'result' => $result,