Subversion Repositories SmartDukaan

Rev

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

Rev 11529 Rev 11749
Line 177... Line 177...
177
			elseif(isset($authorized['isLoggedIn']) && empty($authorized['isLoggedIn'])) {
177
			elseif(isset($authorized['isLoggedIn']) && empty($authorized['isLoggedIn'])) {
178
				$_POST['isLoggedIn'] = 'false';
178
				$_POST['isLoggedIn'] = 'false';
179
			}
179
			}
180
		}
180
		}
181
		$response=$this->cart_model->getCart($this->input->get(),$this->input->post(),$this->config->item('cart_update'),$cartId);
181
		$response=$this->cart_model->getCart($this->input->get(),$this->input->post(),$this->config->item('cart_update'),$cartId);
182
		redirect(base_url().strtolower(__CLASS__),'refresh');
182
		redirect(base_url().strtolower(__CLASS__));
183
			
183
			
184
	}
184
	}
185
	public function delete($id=null)
185
	public function delete($id=null)
186
	{
186
	{
187
 
187
 
Line 214... Line 214...
214
				$authorized = $this->session->userdata('authorized');
214
				$authorized = $this->session->userdata('authorized');
215
				if(isset($authorized) && !empty($authorized)){
215
				if(isset($authorized) && !empty($authorized)){
216
					$newValues = $authorized;
216
					$newValues = $authorized;
217
					$newValues['totalItems'] = $cartCount;
217
					$newValues['totalItems'] = $cartCount;
218
					$this->session->set_userdata('authorized',$newValues);
218
					$this->session->set_userdata('authorized',$newValues);
-
 
219
					redirect(base_url().strtolower(__CLASS__));
219
				}
220
				}
220
			}else{
221
			}else{
221
				redirect(base_url().strtolower(__CLASS__), 'refresh');		
222
				redirect(base_url().strtolower(__CLASS__));		
222
			}
223
			}
223
		}
224
		}
224
		else
225
		else
225
		{
226
		{
226
			$response['response']['msg'] = 'Invalid Parameter!';
227
			$response['response']['msg'] = 'Invalid Parameter!';
227
			redirect(base_url().strtolower(__CLASS__), 'refresh');
228
			redirect(base_url().strtolower(__CLASS__));
228
 
229
 
229
		}
230
		}
230
		redirect(base_url().strtolower(__CLASS__), 'refresh');
231
		redirect(base_url().strtolower(__CLASS__));
231
 
232
 
232
	}
233
	}
233
	public function coupon($code=null)
234
	public function coupon($code=null)
234
	{
235
	{
235
		$response=array();
236
		$response=array();