Jump to content

Product Page Html Source Editor Rewrites Coding


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...