Another Way to Add a Comodo InstallSSL Secure Cert Logo to Your Pages
FOR X-CART GOLD v4.1.5
Assuming that your X-Cart install directory is ⌠xcartdirectory■, and you saved your Comodo InstallSSL logo image in skin1\images\secure_site.gif.
Step 1. Make a new file \skin1\secure_cert.tpl:
Code:
{literal}<script language="javascript" type="text/javascript">
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/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>{/literal}
Step 2. Add the following code:
Code:
{include file="secure_cert.tpl"}
To the very beginning part of the following files:- \skin1\head.tpl --(right after {* $Id: head.tpl,v 1.58 2006/03/17 08:50:44 svowl Exp $ *})
- \skin1\head_admin.tpl --(right after {* $Id: head_admin.tpl,v 1.10 2006/03/17 08:50:44 svowl Exp $ *} )
- AND any other header files of the pages where you want the logo to appear.
Step 3. Make a new file \skin1\secure_logo.tpl:
Code:
{literal}<script language="JavaScript" type="text/javascript">
COT("../xcartdirectory/skin1/images/secure_site.gif", "SC2", "none");
</script>{/literal}
Change xcartdirectory accordingly. If your X-Cart is installed in root, use: ../skin1/images/secure_site.gif.
Step 4. Add the following code:
Code:
{include file="secure_logo.tpl"}
To the very bottom part of the following files:- \skin1\bottom.tpl --(right after </table>)
- AND any other footer files of the pages where you want the logo to appear.
DONE!
IMPORTANT NOTE: Please use relative path in your script (with few exceptions). That means NO http:// in any of your .tpl files that will output to a web page. Otherwise, security warning may pop up. Example: Use URL ../home.php for HOME tab on Speed Bar instead of URL http://mydomain.com/.
Feel free to visit my site www.vonbell.com, add an item to cart, and click on "Checkout" to see how it works.
Good luck!
Guosheng
VonBell
www.vonbell.com