diff --git a/app/Config/App.php b/app/Config/App.php index b103d26..91ddb77 100644 --- a/app/Config/App.php +++ b/app/Config/App.php @@ -18,10 +18,12 @@ class App extends BaseConfig * http://example.com/ */ // public string $baseURL = 'https://mprkv.co.in/devbook'; - // public string $baseURL = 'http://localhost/golf_backend'; - public string $baseURL = 'http://localhost:88/golf_backend'; + + public string $baseURL = 'http://localhost/golf_backend'; + // public string $baseURL = 'http://localhost:88/golf_backend'; + /** * Allowed Hostnames in the Site URL other than the hostname in the baseURL. * If you want to accept multiple Hostnames, set this. diff --git a/app/Controllers/Cart_controller.php b/app/Controllers/Cart_controller.php index 6bfac29..7e49489 100644 --- a/app/Controllers/Cart_controller.php +++ b/app/Controllers/Cart_controller.php @@ -125,6 +125,10 @@ class Cart_controller extends BaseController { if (!session()->has('logged_user')) { + if (session()->has('token')) + { + $token = session()->get('token'); + } $data = $this->Cart_token_model->where('md5(token)', $token )->findAll(); if ($data) { @@ -150,6 +154,8 @@ class Cart_controller extends BaseController } else { + + $token = md5($this->session->get('logged_user')); $data = $this->cartModel->where('md5(member_id)', $token )->findAll(); if ($data) {