Hakem80 Posted October 20, 2016 Share Posted October 20, 2016 Hi All, I want to install Comodo SSL TrustLogo. its gives me a code to put in before the </HEAD> tag and code before the </BODY> tag. Where to find a file to edit to appears this in home page ? Thanks Link to comment Share on other sites More sharing options...
bellini13 Posted October 20, 2016 Share Posted October 20, 2016 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 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 20, 2016 Share Posted October 20, 2016 (edited) I was just about to ask this so thank you for posting it. Is it OK to add two trust seals? I have Comodo and GoDaddy SSL seals. If not, which seal is better? Edited October 20, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
Logical IT Posted October 20, 2016 Share Posted October 20, 2016 (edited) 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/ Edited October 20, 2016 by Logical IT (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted October 21, 2016 Share Posted October 21, 2016 I was just about to ask this so thank you for posting it. Is it OK to add two trust seals? I have Comodo and GoDaddy SSL seals. If not, which seal is better? You would only install the seal that matches the SSL certificate you are using 1 Link to comment Share on other sites More sharing options...
Hakem80 Posted October 21, 2016 Author Share Posted October 21, 2016 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/ No one of these methods works for me Link to comment Share on other sites More sharing options...
pause4paws Posted October 21, 2016 Share Posted October 21, 2016 (edited) You would only install the seal that matches the SSL certificate you are using I'm currently using one from Comodo. Edited October 22, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
pause4paws Posted October 22, 2016 Share Posted October 22, 2016 (edited) 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 October 22, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
pause4paws Posted October 22, 2016 Share Posted October 22, 2016 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"> TrustLogo("https://www.mysite.com/images/trustlogo/comodo_secure_seal_113x59_transp.png", "CL1", "none"); </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? Link to comment Share on other sites More sharing options...
pause4paws Posted October 24, 2016 Share Posted October 24, 2016 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 More sharing options...
bellini13 Posted October 24, 2016 Share Posted October 24, 2016 the header.tpl and footer.tpl are the ones. I assume you located those files and the </head> and </body> tags within them? Link to comment Share on other sites More sharing options...
pause4paws Posted October 24, 2016 Share Posted October 24, 2016 (edited) the header.tpl and footer.tpl are the ones. I assume you located those files and the </head> and </body> tags within them? Yes, of course, as in my post #9 in this topic. Just to confirm, this is where I took the header.tpl file from: Edited October 24, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted October 24, 2016 Share Posted October 24, 2016 Try to wrap both code in literal tag like this {literal} <script type="text/javascript"> ...... </script> {/literal} 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 24, 2016 Share Posted October 24, 2016 (edited) 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 October 24, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
pause4paws Posted October 24, 2016 Share Posted October 24, 2016 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. Link to comment Share on other sites More sharing options...
bellini13 Posted October 24, 2016 Share Posted October 24, 2016 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 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 24, 2016 Share Posted October 24, 2016 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 More sharing options...
bellini13 Posted October 25, 2016 Share Posted October 25, 2016 Sounds like you need to go back to comodo support with the error you found. This does not appear to be related to Prestashop Link to comment Share on other sites More sharing options...
pause4paws Posted October 25, 2016 Share Posted October 25, 2016 I'll send that info to them. Thank you. Link to comment Share on other sites More sharing options...
pause4paws Posted October 25, 2016 Share Posted October 25, 2016 (edited) 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-cihttps://www.reddit.com/r/webdev/comments/52dn3x/chrome_is_intervening_against_documentwrite/Regards,COMODO SSL Technical Support. Edited October 28, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted October 25, 2016 Share Posted October 25, 2016 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 More sharing options...
pause4paws Posted October 25, 2016 Share Posted October 25, 2016 (edited) 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 [Learn More] - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_defined unreachable code after return statement[Learn More] - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Stmt_after_return 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. Edited October 28, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
pause4paws Posted October 28, 2016 Share Posted October 28, 2016 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" : "http://www.trustlogo.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"> COT("https://www.MYSITE.com/images/trustlogo/comodo_secure_seal_113x59_transp.png", "CL1", "none"); </script>{/literal} end of code. Link to comment Share on other sites More sharing options...
razaro Posted October 28, 2016 Share Posted October 28, 2016 So finally working ? :-) great to hear 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 28, 2016 Share Posted October 28, 2016 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. 1 Link to comment Share on other sites More sharing options...
asapho Posted May 15, 2018 Share Posted May 15, 2018 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. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now