Jump to content

How to check if any employee is logged in ?


Recommended Posts

I used:

public function SampleFunction  ($arg) {
  global $cookie;
// Now I can use cookie //
  return (int)$cookie->id_employee;
}

  public function processProductTabContent()
{
$id_product = Tools::getValue('id_product');

$id_employee=$this->SampleFunction();

}

It works just for the SuperAdmin can you help me ?

Link to comment
Share on other sites

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...