Subversion Repositories SmartDukaan

Rev

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

Rev 18478 Rev 18479
Line 142... Line 142...
142
                if(!empty($store['Store']['sub_tag_param'])){
142
                if(!empty($store['Store']['sub_tag_param'])){
143
                        $url .= '&'.$store['Store']['sub_tag_param'].'='.$tag;
143
                        $url .= '&'.$store['Store']['sub_tag_param'].'='.$tag;
144
                }
144
                }
145
    	    }
145
    	    }
146
			$extras = array('store'=>$store['Store']['name']);
146
			$extras = array('store'=>$store['Store']['name']);
147
			$data = array('user_id'=>$userId,'store_product_id'=>$storeProductId,'price'=>$available_price, 'product_name'=>$storeProductName, 'brand'=>$storeProductBrand, 'category'=>$storeProductCategory, 'tag'=>$tag,'url'=>$url,'extras'=>json_encode($extras));
147
			$data = array('user_id'=>$userId,'store_product_id'=>$storeProductId,'price'=>$available_price, 'product_name'=>$storeProductName, 'brand'=>$storeProductBrand, 'category_id'=>$storeProductCategory, 'tag'=>$tag,'url'=>$url,'extras'=>json_encode($extras));
148
			$this->Click->create();
148
			$this->Click->create();
149
			$curl = $this->livepriceurl."!latestPriceById?id=$storeProductId&source_id=$storeId&url=".base64_encode($url1);
149
			$curl = $this->livepriceurl."!latestPriceById?id=$storeProductId&source_id=$storeId&url=".base64_encode($url1);
150
			$response = $this->make_request($curl,null);
150
			$response = $this->make_request($curl,null);
151
			$this->log("live price response ".print_r($response,1),'api');
151
			$this->log("live price response ".print_r($response,1),'api');
152
			if ($this->Click->save($data)) {
152
			if ($this->Click->save($data)) {