title: Prestashop 1.7- snippet jQuery code inside templates files (jQuery is not defined)
body: <p>How can write snippet jQuery code inside theme <code>tpl</code> files? It's possible?</p>
  
  <p>In the last of <code>theme\classicChild\modules\ps_customersignin\ps_customersignin.tpl</code> I used jQuery code, but in <code>chrome console</code> i get <code>(jQuery is not defined)</code> message:</p>
  
  <pre><code>{literal}
  &lt;script type="text/javascript"&gt;
  
          jQuery(document).ready(function($){
              alert('x');
          });
  
  
  &lt;/script&gt;
  {/literal}
  </code></pre>
  
  <p><strong>Edit:</strong>
  also use <strong>displayBeforeBodyClosingTag</strong> Hook before jquery code but don't work.</p>
  
  <pre><code>{hook h='displayBeforeBodyClosingTag'}
  
  {literal}
  &lt;script type="text/javascript"&gt;
  
          jQuery(document).ready(function($){
              alert('x');
          });
  
  
  &lt;/script&gt;
  {/literal}
  </code></pre>