Prestashop 1.2.5 Access cookies


/ Published in: PHP
Save to your folder(s)

Code to access Prestashop's cookies from outside of the system (on the same domain). The example is specifically for the userid.


Copy this code and paste it in your HTML
  1. /* SSL Management */
  2. $useSSL = true;
  3.  
  4. include('../config/config.inc.php');
  5. include('../init.php');
  6. if ($cookie->isLogged()){
  7. $userid = intval($cookie->id_customer);
  8. }

Report this snippet


Comments


You need to login to view comments.