title: Custom Cookie variable + Prestashop
body: <p>Prestashop</p>
  
  <p>I am stuck we one problem for cookie. In prestashop 1.4.7 I create a custom cookie variable using  setcookie but when i am try to access and assign it on front-controller, I am not getting cookies set value.
  here is my script:</p>
  
  <p><strong>page: checkpostcode.php</strong></p>
  
  <pre><code>include(dirname(__FILE__).'/config/config.inc.php');
  include(dirname(__FILE__).'/init.php');
  global $cookie;
  
  setcookie("is_postcode_checked", 1, time()+600, "/", "", 1); // Set the cookie in basepath
  </code></pre>
  
  <p><strong>On frontcontroller.php page :</strong>
  I am access it using <code>$_COOKIE</code> and assign it into smarty array.</p>
  
  <pre><code>'is_postcode_checked' =&gt; $_COOKIE['is_postcode_checked'] // Getting null value for cookie
  </code></pre>
  
  <p><strong>page: checkpostcode.tpl</strong></p>
  
  <pre><code>{$cookie-&gt;_get(postcode_checked_msg)}  // here get the is_postcode_checked value but 
  </code></pre>
  
  <p>but I am not able to get <code>is_postcode_checked</code> variable value. </p>