prismatix Posted July 23, 2010 Share Posted July 23, 2010 Hi,How can I enable javascript on CMS? Link to comment Share on other sites More sharing options...
rocky Posted July 25, 2010 Share Posted July 25, 2010 What version of PrestaShop are you using? Javascript should already be enabled in the CMS in PrestaShop v1.3.1. Link to comment Share on other sites More sharing options...
prismatix Posted July 26, 2010 Author Share Posted July 26, 2010 I have version 1.2.4.0. If I just replace the CMS files javascript will be enabled? Link to comment Share on other sites More sharing options...
DutchCoding Posted July 26, 2010 Share Posted July 26, 2010 I think you mean how to add javascript to a cms page? Link to comment Share on other sites More sharing options...
prismatix Posted July 26, 2010 Author Share Posted July 26, 2010 yes,when I try to add some code inside the tag [removed][removed] the CMS automatically removes it when I save Link to comment Share on other sites More sharing options...
rocky Posted July 26, 2010 Share Posted July 26, 2010 You can try overwriting the js/tinymce folder with the one from PrestaShop v1.3.1 and overwrite admin/tabs/AdminCMS.php too. Remember to back up your files in case anything goes wrong. Link to comment Share on other sites More sharing options...
prismatix Posted July 26, 2010 Author Share Posted July 26, 2010 don't work =\ Link to comment Share on other sites More sharing options...
rocky Posted July 26, 2010 Share Posted July 26, 2010 I just tried adding Javascript to the delivery page on my test site and it works. I added the following at the top in HTML view: <script type="text/javascript">alert('Test');</script> And when I clicked Save, it converted it to the following: <script type="text/javascript">// <![CDATA[ alert('Test'); // ]]></script> When I went to my delivery page, it displayed an alert saying "Test" as expected. If this doesn't work for you, I guess you'll have to completely upgrade to PrestaShop v1.3.1, or put the Javascript in TPL files instead. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now