Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Placing Comodo certificate logos in the cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 10-04-2007, 09:31 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Placing Comodo certificate logos in the cart

Moving to Template Editing. I'd suggest also adding it to the registration form, as that is where sensitive info is entered as well.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-04-2007, 10:05 AM
 
kacz kacz is offline
 

Member
  
Join Date: Aug 2007
Posts: 11
 

Default Re: Placing Comodo certificate logos in the cart

Good point, and easy enough to do. However, one of the things I've done is to replace the x-cart registration form with my own registration form. The purpose was to capture data that could be shared with the client's CRM system (goldmine) that didn't really need to be in the commerce system and do so using a custom email form that gets consumed by Goldmine. It seemed just easier to bypass registration altogether, although I love the idea of adding this same mod to that form.
__________________
X-Cart Pro - 4.1.8
X-Cart Pro - 4.1.9
Custom Mods and Skinning
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:52 AM.

   

 
X-Cart forums © 2001-2020