Community Forums

OpenCart with my framework please help!

Discuss integration with other scripts such as WordPress, Joomla, PHPBB, etc..

OpenCart with my framework please help!

Postby morpheis91 » Wed Mar 28, 2012 7:09 pm

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 :)
morpheis91
 
Posts: 6
Joined: Wed Feb 29, 2012 4:21 pm

Re: OpenCart with my framework please help!

Postby amdev » Fri Mar 30, 2012 3:50 pm

$this->session->data['customer_id'] = $customer_query->row['customer_id'];
User avatar
amdev
 
Posts: 168
Joined: Fri Nov 27, 2009 7:40 am
Location: Bangkok - Thailand

Re: OpenCart with my framework please help!

Postby morpheis91 » Mon Apr 02, 2012 5:21 pm

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?
morpheis91
 
Posts: 6
Joined: Wed Feb 29, 2012 4:21 pm


Return to Integration

Who is online

Users browsing this forum: No registered users and 6 guests

Hosted by Arvixe Web Hosting