View Single Post
  #1  
Old 10-04-2007, 08:18 AM
 
kacz kacz is offline
 

Member
  
Join Date: Aug 2007
Posts: 11
 

Default Placing Comodo certificate logos in the cart

I have a site that used a Comodo SSL cert. Comodo has a method of displaying a validated logo which superimposes the logo over the page (template) on which you place it. I was reminded of this while viewing another site (here http://www.extremepsi.com/store/customer/home.php).

So, I thought I'd post my own mod that places the Comodo logo ONLY on the check out page and then only in a small section of the page (not overlaid).

Step 1. Create a file called comodo.html and place it somewhere in the cart sub-directory structure. This file should contain exactly the html COMODO sent you for integration. In my case it looked a little something like this:

<html>
<head>
<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>
</head>
<body>
<script language="JavaScript" type="text/javascript">
COT("https://your image URL here", "SC2", "none");
</script>
</body>
</html>


Step 2. Replace the table in customer/main/checkout_notes.tpl with the following:


<table cellspacing="0" cellpadding="2">
<tr valign="top">
<td>{$lng.lbl_customer_notes}:</td>
<td>&nbsp;</td>
<td nowrap="nowrap"><textarea cols="55" rows="10" name="Customer_Notes"></textarea></td><td><iframe height="139" width="105" marginheight="0" marginwidth="0" scrolling="no" frameborder="0" src="https://www.whereever you stored/comodo.html"></iframe>
</td>
</tr>
</table>

What this does is set up a table for the customer notes (conveniently displayed just below the payment entry section) that includes 1 column for notes and contains the comodo logo in a second column. That logo stays put, stays out of the way and still announces to your clients that you're a safe a secure place with which to do business.
__________________
X-Cart Pro - 4.1.8
X-Cart Pro - 4.1.9
Custom Mods and Skinning
Reply With Quote