Jump to content

Own JS script inside .tpl file - Smarty (1.6.0.8 vs 1.6.0.14)


Recommended Posts

Dear Users!

 

I've been trying to figure our what's the problem with keeping JS inline.

On PrestaShop 1.6.0.8 without any CCC option there are still problems.

I've found this gist:

https://gist.github.com/hereswhatidid/8c8edef106ee95138b03

According to their example and using {literal}[/literal} tags:

{literal}
<script type="text/javascript" data-keepinline="true">
alert( "hello!" );
</script>
{/literal}

Is it enough to force keeping JS inline? What can I do more to implement codes such as Facebook Conversion or Google Tag.

Does Prestashop 1.6.0.14 have the same issue? 

 

Thank you in advance.

 

Best wishes and have a nice day!

 

Link to comment
Share on other sites

Dear Users!

 

I've been trying to figure our what's the problem with keeping JS inline.

On PrestaShop 1.6.0.8 without any CCC option there are still problems.

I've found this gist:

https://gist.github.com/hereswhatidid/8c8edef106ee95138b03

According to their example and using {literal}[/literal} tags:

{literal}
<script type="text/javascript" data-keepinline="true">
alert( "hello!" );
</script>
{/literal}

Is it enough to force keeping JS inline? What can I do more to implement codes such as Facebook Conversion or Google Tag.

Does Prestashop 1.6.0.14 have the same issue? 

 

Thank you in advance.

 

Best wishes and have a nice day!

There is no issues with Prestashop, Prestashop is just great. Can you explain what you want exactly? 

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