Jump to content

How to Install Comodo SSL TrustLogo


Recommended Posts

Hello,

 

Read this forum post on how to install the Comodo SSL TrustLogo:

https://www.prestashop.com/forums/topic/82955-solved-how-to-add-comodo-ssl-with-floating-corner-trustlogo/

 

I read that solution but projectpb says: "You will need a Comodo Instant SSL Certificate. The Comodo Positive SSL will not work with this logo."

 

I have the Comodo Positive SSL certificate and followed the instructions I received today (although bought a year ago) and my Trust Logo image is on my webserver. I edited the footer.tpl and header.tpl with the code snippets I was given.

 

Do you have any idea what does work for the Positive SSL Certificate? 

Edited by pause4paws (see edit history)
Link to comment
Share on other sites

PrestaShop 1.6.1.7

 

Comodo instructions:   https://trustlogo.com/install/

 

My Comodo Trust Logo image is on my server.

 

I changed my website URL to "mysite" for this forum.

 

Instructions & code snippets from the above URL:
 
Note: This section does NOT let you select the position on your page:
 
Select the position on your page where you'd like the TrustLogo to appear:
Position: Inline
Install Code Snippets
Your code snippets will appear below based on the position you choose for your TrustLogo.
 
I edited header.tpl file and added this before the </HEAD> tag 
 
<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>
 
AND
 
Edited footer.tpl file and added this before the </BODY> tag 
 
 
<script language="JavaScript" type="text/javascript">
</script>
 
Do you see anything wrong, please?
 
The instructions also say: "You will need to repeat the process for each web page you wish to display the TrustLogo."  Is that correct?

 

post-1292894-0-48855400-1477127074_thumb.jpg

Link to comment
Share on other sites

search for and edit the header.tpl and footer.tpl file in your themes directory.  if you are using a custom theme, then the files may be different, you will just need to search through them and locate the appropriate ones

 

COMODO SSL Technical Support said:

Step 2: Copy and paste the 2 snippets of HTML code below.

Copy/Paste the Snippet 1 of code and insert EXACTLY before your </HEAD> tag.

Copy/Paste the Snippet 2 of code and insert EXACTLY before your </BODY> tag.

 

Please insert the two snippets of HTML code into your webpage document. You will need to repeat the process for each web page you wish to display Corner of Trust Logo™.

What files, if not the ones Bellini13 mentioned, that I already put the code in, should be edited, please?

Link to comment
Share on other sites

I enclosed both code snippets with the {literal} and {/literal} tags and in admin I forced compilation, cleared cache and the seal still doesn't show up. 

 

Razaro, thank you so much for helping me out! 

 

Any other suggestions, please?

 

I also cleared the browser cache and reloaded the page several times. I watched the bottom left where it shows what sites are being accessed to load various elements of the homepage and it shows waiting for: secure.comodo.com

Edited by pause4paws (see edit history)
Link to comment
Share on other sites

Comodo got back to me and told me to add the code snippets they included in an attached file, which I did, even though they are exactly the same.

 

The only thing that shows up is Positive SSL link to Comodo's website, which I already had and removed. 

 

After Comodo gets back to me again, saying they saw that, I'll remove the link again.

 

 

post-1292894-0-75379800-1477319405_thumb.jpg

Link to comment
Share on other sites

check the browsers javascript console (F12 key) and check for errors in the console. 

 

as for the files you changed, assuming your theme is "theme998", then appears you changed the right files.  But really, how would I know, or how would any of us know for sure, without actually knowing your store's configuration

  • Like 1
Link to comment
Share on other sites

check the browsers javascript console (F12 key) and check for errors in the console. 

 

as for the files you changed, assuming your theme is "theme998", then appears you changed the right files.  But really, how would I know, or how would any of us know for sure, without actually knowing your store's configuration

 

Thank you for this clue. I'm in maintenance mode because the shop isn't ready to go public but this is the theme:

 

http://www.templatemonster.com/prestashop-themes/50521.html

 

Chrome in the javascript console, which also includes the liveperson reference I created a forum post for, so double thanks! I just don't know how to fix any of this. The part about pinging is probably not a problem because the site isn't live, but I'm not sure.

 

2(index):74 A Parser-blocking, cross-origin script, https://secure.comodo.com/trustlogo/javascript/trustlogo.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
 
(index):77 Uncaught ReferenceError: TrustLogo is not defined
 
https://lptag.liveperson.net/lptag/api/account/0/configuration/applications/taglets/.jsonp?df=0&b=1 Failed to load resource: the server responded with a status of 404 (Not Found)
 
ping:1 Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
 
End of Chrome console messages.
 
FireFox javascript console messages:
 
ReferenceError: TrustLogo is not defined
 
[Learn More]www.mysite.com:70:1
 
unreachable code after return statement[Learn More]trustlogo.js:28:123
 
Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.ping:1:51
 
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features!
 
End of FireFox Javascript Console.
 

I'm on a Mac and use Chrome and FireFox, so this link was helpful to access the javascript console:  

 

http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers

 
Thank you for any advice you may offer!
Link to comment
Share on other sites

I just received Comodo support's reply and don't know how to fix these after looking at the two links they provided.

 

Tue, Oct 25, 2016 at 8:42 AM, Comodo Support <[email protected]> wrote:
 

This is an issue with your web page not the logo.

http://stackoverflow.com/questions/39610829/a-parser-blocking-cross-origin-script-is-invoked-via-document-write-how-to-ci

https://www.reddit.com/r/webdev/comments/52dn3x/chrome_is_intervening_against_documentwrite/

Regards,
COMODO SSL Technical Support.

Edited by pause4paws (see edit history)
Link to comment
Share on other sites

Try to use $('body').append so like this

<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
$('body').append(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>

or again with {literal} .... {/literal} if needed.

Link to comment
Share on other sites

Try to use $('body').append so like this

<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
$('body').append(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>

or again with {literal} .... {/literal} if needed.

 

Before you get excited (lol), my Comodo TrustLogo still does not show up. Here's everything I've tried after your reply, Razaro (Thank you!!!)

 

I should mention that my problem is only in getting the seal to show up, which I really want. My site is all https and the lock is on all pages.

 

I edited the header.tpl as you showed and tried with and without literal tags, so kept the literal tags, as follows: (I also added and kept the literal tags for the footer.tpl but didn't change any other code).

 

{literal}
<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
$('body').append(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>
{/literal}
 
Next:
Turned off Use HTMLPurifier Library in prefs / general.
Cleared cache, cleared browser cache and closed browser. 
Reopened Browser (FireFox).
 
No change.
 
Turned off the Smart cache for CSS.
Turned off smarty cache (from advanced params / performance).
forced compilation.
recompiled templates if the files have been updated.
cleared cache.
 
No change. 
 
Turned smarty cache back on.
Turned back on Smart cache for CSS.
(If I don't turn settings back to where they were, I may not be able to find them later).
 
I looked at FireFox Console:
Two errors:
 
ReferenceError: TrustLogo is not defined
 
 
Comodo insists that it is the template.
 
The host says SSL is installed correctly.
 
The other things I tried were after looking at other earlier posts about this problem, going back to 2011 or 2013.
 
Screenshots are to show that I really did find and do whatever I've said I've done. And then returned the settings to what they were before, since they didn't make a change.

post-1292894-0-25755700-1477422828_thumb.jpg

post-1292894-0-06847600-1477422870_thumb.jpg

post-1292894-0-54607100-1477422883_thumb.jpg

post-1292894-0-57935600-1477423302_thumb.jpg

Edited by pause4paws (see edit history)
Link to comment
Share on other sites

Hi, Razaro,

 

Thank you very much for the time and effort you put into helping me with this issue.

 

Comodo gave me more code and the seal is there and it displays the info about my site.

 

Header:
{literal}<script language="javascript" type="text/javascript">
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.com/trustlogo/javascript/cot.js" :
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
</script>{/literal}
 
Footer:
{literal}
<a href="http://www.instantssl.com" id="comodoTL">SSL</a>
<script language="JavaScript" type="text/javascript">
</script>{/literal}
 
end of code.
Link to comment
Share on other sites

  • 1 year later...
On 10/28/2016 at 3:19 AM, pause4paws said:

Yes! So relieved! How do I mark that you solved it?

 

I know the info is cut off when hovering over the comodo seal, but we spent enough time with this! :) I did mention it to Comodo, in case they have an answer. 

post-1292894-0-15455700-1477639112_thumb.jpg

 

Did you resolve this? It sounds like you did, but I cannot seem to find your solution above. Would you mind sharing?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...