Hi, I'm new to OC only having used it for about a week now. I have a situation where I need to access user account session data on an external/non-OC page. I've done this in the past with other db apps such as phpbb and the like but I can't seem to find out how to do it with OC.
Can anyone point me in the right direction to get this done? I really just need the user_id to then query it and display info based on the user's customer group.
Thanks in advance
Can anyone point me in the right direction to get this done? I really just need the user_id to then query it and display info based on the user's customer group.
Thanks in advance
Are the two sites on the same domain? If so you could write the userid into a cookie and read it that way on the other site.
Documentation: OpenCart User Guide
Mods: Total Import PRO | CSV Import PRO | Ecom Tracking | Any Feed | Autosuggest | OpenCart CDN
Thanks. If I run that on a page outside of OC (say on a plan 'ol php page located at the root of the OC install) do you happen to know what includes are needed to use that class and functions?Qphoria wrote:$this->customer->getFirstName();
$this->customer->getLastName();
$this->customer->getEmail();
It's not going to be simple, you'd need a hybrid of the customer class, you'd need a db connection to the OC db. The easiest way is to make the call to $this->customer->getXXXXX() and write it to a cookie. Then your other application can read it straight from the cookie.
Documentation: OpenCart User Guide
Mods: Total Import PRO | CSV Import PRO | Ecom Tracking | Any Feed | Autosuggest | OpenCart CDN
Who is online
Users browsing this forum: Amazon [Bot] and 106 guests