Subversion Repositories SmartDukaan

Rev

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

Rev 14386 Rev 14387
Line 241... Line 241...
241
	public function getliveprice($bundleId=null,$storeId=null) {
241
	public function getliveprice($bundleId=null,$storeId=null) {
242
		// $cachekey = 'liveprice-'.$bundleId.'-'.$storeId;
242
		// $cachekey = 'liveprice-'.$bundleId.'-'.$storeId;
243
		// $this->log($cachekey,'api');
243
		// $this->log($cachekey,'api');
244
		// $products = Cache::read($cachekey,'fivemin');
244
		// $products = Cache::read($cachekey,'fivemin');
245
		// if(empty($products)) {
245
		// if(empty($products)) {
-
 
246
		session_write_close();
246
		$result = array();
247
		$result = array();
247
		$this->response->type('json');
248
		$this->response->type('json');
248
		$this->layout = 'ajax';
249
		$this->layout = 'ajax';
249
		$url = $this->livepriceurl."?skuBundleId=$bundleId&source_id=$storeId";
250
		$url = $this->livepriceurl."?skuBundleId=$bundleId&source_id=$storeId";
250
		$products = $this->make_request($url,null);
251
		$products = $this->make_request($url,null);