title: How to use php in a .tpl file prestashop
body: <p>I just integrated a web-marchant plugin on my prestashop website, and one of the requirement of the web marchant is that i show a message either error or success message after an order as been submitted.So from the url i can get the action if successful or not. And from what i have read from around here i need to change</p>
  
  <p>this :</p>
  
  <pre><code>require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
  
  global $smarty;
  $smarty = new Smarty();
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>require_once(_PS_SMARTY_DIR_.'SmartyBC.class.php');
  
  global $smarty;
  $smarty = new SmartyBC();
  </code></pre>
  
  <p>And this i already did,then i added this to the page i want to display the response i get from the $_GET[] variable.</p>
  
  <pre><code>{php}
  /**
  *@authour 
  *@return Order response
  *4/15/2015
  **/
      echo urldecode(base64_decode($_GET['gtpay_error']));
      echo '&lt;br&gt;';
      echo urldecode(base64_decode($_GET['gtpay_tranid']));
  {/php}
  </code></pre>
  
  <p>but still no luck,it output the code as it is.What might i be doing please.
  Thanks in advance </p>
  
  <p>Now this is the php script am adding to the page:</p>
  
  <pre><code>{php}
          {$smarty.get.gtpay_error}
      {urldecode(base64_decode($smarty.get.gtpay_error))};
      {'&lt;br&gt;'}
      {urldecode(base64_decode($_GET['gtpay_tranid']))};
  {/php}
  </code></pre>
  
  <p>then it throws error:</p>
  
  <pre><code>Parse error: syntax error, unexpected '=' in /home/thelibra/public_html/tools/smarty/SmartyBC.class.php(464) : eval()'d code on line 2
  </code></pre>