Page 1 of 1

Using OC 3.0.2.0 customer login authentication on non cart page

Posted: Fri Jan 26, 2018 8:40 am
by someguyincali
I am building a web site and I want to have opencart embeded into it. I want to utilize the opencart customer login authentication on all php pages in my site so that the transition to the shopping cart portion of the site is seamless.

OpenCart version 3.0.2.0

I want to do what this guy did: viewtopic.php?f=21&t=69949&start=20
Unfortunately, that reference is deprecated.

Is there a script somewhere I can include on non-opencart php pages that will check for a valid logged in session?

Re: Using OC 3.0.2.0 customer login authentication on non cart page

Posted: Sat Jan 27, 2018 7:17 am
by straightlight
Building an API by using the backward compatibility method would be the best way. This functionality is already coded in the OC core.