myteam Posted May 23, 2012 Share Posted May 23, 2012 I try to integrate arrow chat software with prestashop Example from the documentation: http://www.arrowchat.com/documentation/?p=custom-website function get_user_id() { $userid = NULL; if (!empty($_COOKIE['userid'])) { $userid = $_COOKIE['userid']; } return $userid; } Using the example I write a php to get User ID from Prestashop cookie: function get_user_id() { global $cookie; $userid = NULL; if (isset($cookie->id_customer)) { $userid = $cookie->id_customer; } return $userid; } But I always get NULL. Anything wrong with my code? Apprieciate if someone can shred me some light. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.