mahen23 Posted October 4, 2010 Share Posted October 4, 2010 Hi, i waant to create my own cookie and i want Prestashop to detect it. So i added this method to Classes/cookie.php: function myCookie() { if ($_COOKIE['TestCookie'] == "somethng") return true; return false; } and under the is_logged function i added this: if (myCookie AND $this->logged == 1 AND $this->id_customer AND Validate::isUnsignedId($this->id_customer) AND Customer::checkPassword(intval($this->id_customer), $this->passwd)) However, the code seems to crash harshly with loud booms. Can somone please tell me what i am doing wrong. Thanks Link to comment Share on other sites More sharing options...
MrBaseball34 Posted October 20, 2010 Share Posted October 20, 2010 Isn't this what you are looking for: function myCookie() { if ($_COOKIE['TestCookie'] == "somethng") { return true; } else { return false; } } 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