Jihene Heni Posted April 24, 2018 Share Posted April 24, 2018 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 More sharing options...
selectshop.at Posted April 24, 2018 Share Posted April 24, 2018 You can see this on the logs on your back-office: Tab "Advanced Parameters -> logs" there you will see when employee or any other admin logged the last time. This feature does not track if employee is now logged, but it track when he/she logged in last time. 1 Link to comment Share on other sites More sharing options...
Jihene Heni Posted April 24, 2018 Author Share Posted April 24, 2018 I need to get the id-employee when he log in Link to comment Share on other sites More sharing options...
selectshop.at Posted April 24, 2018 Share Posted April 24, 2018 Check on database table ps_employee 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