kydo76 Posted February 19, 2013 Share Posted February 19, 2013 Hi, I was wondering if there's any way to disable the HTML source editor's auto correct function for the product pages for the "More Info" tab.. I want to call some css, js and php scripts, but it keeps rewriting my code. Here's some examples that get rewritten: 1) <link rel="stylesheet" href="/css/style.css" type="text/css" /> gets totally deleted 2) <script type="text/javascript">document.write('hello')</script> becomes <script type="text/javascript">// <![CDATA[document.write('hello');// ]]></script> 3) <?php include 'php.php'; ?> becomes <!--?php include 'header.php'; ?--> I know it says "HTML" source editor, but I was wondering if there's any way for me to do some coding in the "more info" area. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted February 21, 2013 Share Posted February 21, 2013 Hi There, you can't implement php nor javascript there, since it's a pure html code editor. To code in that section, you'll have to write directly into product.tpl, or add a new hook there and hook some module to execute code in that place Link to comment Share on other sites More sharing options...
kydo76 Posted February 22, 2013 Author Share Posted February 22, 2013 Hi, thanks for the response. I kind of knew, but I was hoping there was some magical button to let me do what I want. Thanks again! 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