Page 1 of 1

OpenCart with my framework please help!

Posted: Thu Mar 29, 2012 3:09 am
by morpheis91
Hey there,
I am integrating OpenCart with my current framwork for an existing site. I want to take advantage of the logging in that OpenCart Provides.

What session variables can I check to see if a user is logged in?
Keep in mind that I want to do this from my framework :)

Re: OpenCart with my framework please help!

Posted: Fri Mar 30, 2012 11:50 pm
by amdev
$this->session->data['customer_id'] = $customer_query->row['customer_id'];

Re: OpenCart with my framework please help!

Posted: Tue Apr 03, 2012 1:21 am
by morpheis91
amdev wrote:$this->session->data['customer_id'] = $customer_query->row['customer_id'];
So if I were to use the normal php session access. Would i do something like this? :

Code: Select all

$session_data = $_SESSION['data'];
$customerId = $session_data['customer_id'];
I am not doing this from within the opencart framework. So would this be appropriate?