New Zenner
- Join Date:
- Dec 2006
- Posts:
- 6
- Plugin Contributions:
- 0
Where to insert Comodo Trust Javascript and image code?
I've got a query in regards to how best insert some code global / globally across my shopping cart but also not effect core files so these code insertions are not overwritten by an update to the Zen Cart. I've changed some elements of the code to generic information.
I've been given instructions to insert the following code before the </head> tag of all my shopping cart pages:
<script language="javascript" type="text/javascript">
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "https://secure.ssl-supplier.net/EXAMPLEFOLDER/javascript/cot.js" :
"http://www.ssl-supplier.com/EXAMPLEFOLDER/javascript/cot.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
</script>
And insert the below code just before </body> tag across all the shopping cart pages:
<script language="JavaScript" type="text/javascript">
COT("http://www.myshoppingcart.co.uk/HTML-images/secure_site.gif", "SC2", "none");
</script>
Thanks