Fix script code for cs-cart

Not sure where this fits in the forums, so will stick in here:



Have some javascript I want to add to our footer.tpl, but I’m missing something small I think - can someone throw me a rope to help me out



original code is like this:


```php

```

And I'm trying to add it like this:

```php




```


But no matter how I add the [CDATA] tags I always get an error on the line

```php

try { var FJ = FJNew(); FJ.logHit(); } catch(err) {}

```

can anyone help?

you need to put the javascript code within smarty literal tags, example:


```php

[color=red]{literal}[/color]



[color=red]{/literal}[/color]

```



For your reference:

[url]Search Results for "docsv2" | Smarty

Excellent! many thanks for your help snorocket - have you actually got room on your chest for another medal? :rolleyes:

Is there anyway to stop the cart from editing html through WYSIWYG? I'm trying to add literal tags to a block and it puts the

around the literal tag and then the site ignores the javascript I'm adding? I have a google adwords conversion code but the WYSIWYG editor keeps stripping the CDATA part of the code. i've also tried to add a javascript chat button but it ignores the literal tags there too.

In Admin go to Settings : Appearance



Set [color=#5F5F5F][font=Tahoma, Arial, Verdana,]Default wysiwyg editor: Do Not Use[/font][/color]

[quote name='Triplets' timestamp='1363639645' post='158043']

In Admin go to Settings : Appearance



Set [color=#5F5F5F]Default wysiwyg editor: Do Not Use[/color]

[/quote]



Thanks.