eduartua Posted July 7, 2014 Share Posted July 7, 2014 I've installed my EV SSL certificate on the server and everything is working good! Now I wanna add the Comodo secure seal on the home page. Comodo website generate some code that I have to add in header.tpl and footer.tpl files: Before </head> <script language="javascript" type="text/javascript"> //<![CDATA[ var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.com/trustlogo/javascript/cot.js" : "http://www.trustlogo.com/trustlogo/javascript/cot.js"; document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>'); //]]> </script> Before </body> <a href="http://www.instantssl.com" id="comodoTL">SSL</a> <script language="JavaScript" type="text/javascript"> COT("http://satcomfta.com/img/cot_evssl.gif", "SC3", "none"); </script> In other post I read that I should wrap with the literal tag "{literal}code{/literal}" because it can cause issues in the smarty template engine. Someone can help me in doing this works? Link to comment Share on other sites More sharing options...
Dh42 Posted July 7, 2014 Share Posted July 7, 2014 Did you try it with the literal tags? If so, what error are you getting? Also is your shop set to force compile and the caching turned off? Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2014 Share Posted July 7, 2014 if you're on 1.6.0.7 / 1.6.0.8 go to preferences > general and disable html purifier. at the moment it crashes a lot of useful html snippets i bet that in your case html purifier is causing problem. Link to comment Share on other sites More sharing options...
eduartua Posted July 7, 2014 Author Share Posted July 7, 2014 if you're on 1.6.0.7 / 1.6.0.8 go to preferences > general and disable html purifier. at the moment it crashes a lot of useful html snippets i bet that in your case html purifier is causing problem. It is disabled, and nothing happens this is my code: header.tpl {literal}<script language="javascript" type="text/javascript"> //<![CDATA[var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.com/trustlogo/javascript/cot.js" :"http://www.trustlogo.co$ document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');//]]> </script>{/literal} </head> footer.tpl {literal}<a href="http://www.instantssl.com" id="comodoTL">SSL</a> <script language="JavaScript" type="text/javascript"> COT("http://satcomfta.com/img/cot_evssl.gif", "SC3", "none"); </script>{/literal} </body> </html> Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2014 Share Posted July 8, 2014 if you check browser console (ctrl+shift+j in chrome) do you see there some red errors? Link to comment Share on other sites More sharing options...
eduartua Posted July 8, 2014 Author Share Posted July 8, 2014 if you check browser console (ctrl+shift+j in chrome) do you see there some red errors? Yes I'm receiving the following errors: Uncaught ReferenceError: cot_loc0 is not defined index.php:128 Uncaught ReferenceError: COT is not defined Link to comment Share on other sites More sharing options...
eduartua Posted July 11, 2014 Author Share Posted July 11, 2014 Yes I'm receiving the following errors: Uncaught ReferenceError: cot_loc0 is not defined index.php:128 Uncaught ReferenceError: COT is not defined Can someone help me? Link to comment Share on other sites More sharing options...
vekia Posted July 12, 2014 Share Posted July 12, 2014 Uncaught ReferenceError: cot_loc0 is not defined index.php:128 what you've got in this line? it looks like there is some js error and it affects other scripts too (each script loaded after this error) Link to comment Share on other sites More sharing options...
Recommended Posts