Jump to content

Which customer is online?


Recommended Posts

Use the $cookie object to get information about the currently-logged-in customer. In the PHP files, use intval($cookie->id_customer) to get the customer's ID, $cookie->email to get the customer's email and $cookie->logged to check whether the customer is logged in. If the $cookie object is undefined, you'll need to put global $cookie; at the top of the PHP function you want to use it in. You can also access the $cookie from the TPL files using the syntax {$cookie->email} for example.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...