X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   How to add a Secure Cert Logo to your pages (https://forum.x-cart.com/showthread.php?t=6004)

ShishaPipeUK 02-20-2006 01:04 PM

Thanks for the mod LouOffroad, works great. I used the new bottom corner COMODO logo, bottom right and the code i used was to pick up the logo from my main site images.

skin1/customer/home.tpl - Just before the </head> place:

Code:

{literal}<script>
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('<script language="JavaScript" src="'+cot_loc0+'" type="text\/javascript"><\/script>');
</script>{/literal}


Then at skin1/customer/menu_cart.tpl - After the last </if> and before </capture>

Code:

{literal}<script language="JavaScript">COT("https://www.shisha.co.uk/images/cornertrust.gif", "SC2", "none");</script>{/literal}

This points to the image cornertrust.gif in my main images folder.

The cornertrust.gif looks like this, you can right click it and save the image http://www.shisha.co.uk/images/cornertrust.gif

You can see the finished page at http://www.shisha.co.uk/shopcart/home.php

You can see it is at the bottom right and always stays there no mater how far you scroll down the page :o)

alohacomputer 03-02-2006 05:33 AM

Quote:

Originally Posted by Gibberish
Here is mod if you use GeoTrust.

secure_cert.tpl:

Code:

<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td align="center" valign="top">
{literal}
<script language="JavaScript" type="text/javascript" src="https://smarticon.geotrust.com/si.js"></script>
{/literal}</td>
  </tr>
</table>


customer/home.tpl [Between Head tags]:

Code:

{* SECURE SITE CODE STARTS HERE *}
{literal}
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="http://www.mywebsite.com/animate.js">
</script>
{/literal}
{* SECURE SITE CODE ENDS HERE *}

[/code]


add this code to

customer/home.tpl
single/home.tpl

{ include file="secure_cert.tpl"}




I tried to setup as above but get this error displayed on my pages.


Warning: Smarty error: unable to read resource: "secure_cert.tpl" in /home/refurb/public_html/shop/Smarty-2.6.9/Smarty.class.php on line 1088

Vacman 03-22-2006 10:10 PM

Err - never mind - fixed it...

dazybabes 03-23-2006 07:56 AM

Thanks to ShishaPipe I managed to get this certificate working all ok on my site the only problem is that it knocked out one of my backgrounds!?

www.kitinfo.co.uk
if you look at this page you'll see the blue background on the left scrolls down all the way but if you look at the php home version

www.kitinfo.co.uk/kitwarehouse/home.php

Ive managed to get the comodo logo all in working ok but it has moved the blue background to the right hand side?!

any ideas?

ShishaPipeUK 03-23-2006 08:25 AM

Dazybabes, here is my full head code for skin1/customer/home.tpl

Code:

{* $Id: home.tpl,v 1.67.2.10 2005/10/31 11:36:14 max Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML>
<HEAD>
<script language=JavaScript1.3 src="{$SkinDir}/capitalise.js"></script>
<TITLE>
{if $cat and $current_category.meta_title and not $smarty.get.productid}
{$current_category.meta_title}
{else}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile_c#}">
<script language="JavaScript" src="{$SkinDir}/copybilling2.js"></script>
<script language="JavaScript" src="{$xcart}/shopcart/track.js"></script>
{if $js_enabled}
{include file="customer/main/swap_categories_js.tpl"}
{/if}
{literal}<script>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('<script language="JavaScript" src="'+cot_loc0+'" type="text\/javascript"><\/script>');</script>
{/literal}
</HEAD>


dazybabes 03-24-2006 04:38 AM

Got it sorted thanks Shisha Pipes

I've altered the css for the background image previously it was on the left hand side by default but Ive put a background align:left;
on it and it has brought it over?!

Thanks

iConcepts 06-30-2006 06:41 PM

Does anyone have the Comodo "Corner of Trust" trust logo working properly in IE?

As mentioned in this post, a popup window appears whenever you click anywhere on a page in IE. It works fine in Firefox. Also,I do not have this problem with other sites running other storefront software so I am wondering if it has something to do with Smarty.

Anyone have any thoughts?

Bob

Vacman 06-30-2006 07:55 PM

Quote:

Originally Posted by iConcepts
Does anyone have the Comodo "Corner of Trust" trust logo working properly in IE?

As mentioned in this post, a popup window appears whenever you click anywhere on a page in IE. It works fine in Firefox. Also,I do not have this problem with other sites running other storefront software so I am wondering if it has something to do with Smarty.

Anyone have any thoughts?

Bob


Yep - Check out my site:
http://www.vacsew.com/xcart
http://www.vacsew.com

iConcepts 07-01-2006 10:30 AM

Vacman-

Do you recall what you did to fix it? Or better yet, do you have the code snippet you used?

Thanks-

Bob

Vacman 07-01-2006 09:20 PM

Bob:
/skin1/customer/home.tpl

Code:

{* $Id: home.tpl,v 1.67.2.9 2005/06/28 12:02:38 svowl Exp $ *}

{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML>
<link rel="P3Pv1" href="http://www.vacsew.com/w3c/p3p.xml">
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
</SCRIPT>

{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">


Insert After the above code:

Code:

<script language="JavaScript" src="http://www.trustlogo.com/trustlogo/javascript/cornertrust.js" type="text/javascript"></script>

There may be others, but that is the one I remember being the most trouble.


All times are GMT -8. The time now is 07:20 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.