Jump to content

js in custom tpl file


ipete

Recommended Posts

Hi

 

How could I  use js in tpl file of terms and conditions in iframe?

 

I got it after I put there html page but this page was not able to translate my contents to another language so i decided to create php and tpl files but cant use js.

 

<?php include(dirname(__FILE__).'/config/config.inc.php');
$smarty->display(_PS_THEME_DIR_.'bbb.tpl');
?>
 
I tried many ways to use js but didnt get any result
 
Link to comment
Share on other sites

why not to insert <script></script> tags inside the cms page cotent?

Thank you for answer

What do you mean? Insert in CMS page in html mode <scrtipt></script>?

If I do this and press save I get The content field is invalid.

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...