Subversion Repositories SmartDukaan

Rev

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

Rev 13700 Rev 13723
Line 105... Line 105...
105
		$this->layout = 'ajax';
105
		$this->layout = 'ajax';
106
		$limit = 20;
106
		$limit = 20;
107
		$this->StoreProduct->recursive = -1;
107
		$this->StoreProduct->recursive = -1;
108
		// $count = $this->StoreProduct->find('count');
108
		// $count = $this->StoreProduct->find('count');
109
		$this->StoreProduct->Behaviors->attach('Containable');
109
		$this->StoreProduct->Behaviors->attach('Containable');
110
		$this->Paginator->settings = array('conditions'=>array('StoreProduct.category_id'=>$categoryId),'contain'=>array('Product'),'limit'=>$limit,'fields'=>array('Product.category_id','StoreProduct.id','StoreProduct.title','StoreProduct.thumbnail','StoreProduct.available_price','StoreProduct.cashback','StoreProduct.tagline','StoreProduct.offer','StoreProduct.available_price'));
110
		$this->Paginator->settings = array('order'=>array('rank'=>'asc'),'conditions'=>array('StoreProduct.category_id'=>$categoryId),'contain'=>array('Product'),'limit'=>$limit,'fields'=>array('Product.category_id','StoreProduct.id','StoreProduct.title','StoreProduct.thumbnail','StoreProduct.available_price','StoreProduct.cashback','StoreProduct.tagline','StoreProduct.offer','StoreProduct.available_price'));
111
		$result = array('products' => $this->Paginator->paginate());
111
		$result = array('products' => $this->Paginator->paginate());
112
		$callback = $this->request->query('callback');
112
		$callback = $this->request->query('callback');
113
		$this->set(array(
113
		$this->set(array(
114
		    'result' => $result,
114
		    'result' => $result,
115
		    'callback' => $callback,
115
		    'callback' => $callback,