cedric.v Posted June 13, 2012 Share Posted June 13, 2012 Hello everyone. I'm finding it hard to use jquery with prestashop. I just tried testing my code with an alert and it didn't do anything in my tpl file. Is there something special I need to activate to make the jquery work ? Here's my code in the tpl : <script type="text/JavaScript" language="JavaScript"> JQuery(document).ready(function($){ alert('THIS IS A TEST'); }); </script> Thank you in adance Cédric Link to comment Share on other sites More sharing options...
cedric.v Posted June 13, 2012 Author Share Posted June 13, 2012 Sorry, I found the solution you have to write {literal} at the biginning and {/literal} at the end of the script Link to comment Share on other sites More sharing options...
shacker Posted June 13, 2012 Share Posted June 13, 2012 yeap. Change title to solved please Link to comment Share on other sites More sharing options...
Recommended Posts