poland88 Posted February 16, 2010 Share Posted February 16, 2010 When a customer is online how to get a variable with his id,email, anything? Link to comment Share on other sites More sharing options...
rocky Posted February 17, 2010 Share Posted February 17, 2010 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 More sharing options...
mabrur Posted March 19, 2010 Share Posted March 19, 2010 Thanks Rocky.Can you help me to know about customer (registered) status, is online or not?I want the status can be displayed in customer list, so contact with them more easily. Thanks rockyregards Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now