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

How to have http pages show Thawte SecondTier Seal?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-30-2005, 08:57 AM
 
gravel gravel is offline
 

Senior Member
  
Join Date: Mar 2004
Posts: 156
 

Default How to have http pages show Thawte SecondTier Seal?

Our Thawte seal only appears when a customer logs in or checks out, because the domain changes from www.oursite.com to secure.oursite.com, and the Thawte ssl is only certified for secure.oursite.com. I used this code:

Code:
{if $smarty.server.HTTPS eq "on"} <p align="center"> {literal} <script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe"> </script> {/literal} </p> {/if}

I want to show a Thawte SecondTier Seal image on the http pages. (We could also have it hyperlinked to our "secure pages" but since they only happen when someone logs in, I don't think that is possible.)

How can I modify the above code so it will load an image in the same spot, when it is NOT a https page?

Thanks in advance for any help,
Dan
__________________
X-Cart version 4.0.17
X-Cart version 4.0.18
Web servers = Apache
OS = Linux
Reply With Quote
  #2  
Old 08-30-2005, 07:57 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default Re: How to have http pages show Thawte SecondTier Seal?

Quote:
Originally Posted by gravel
I used this code:

Code:
{if $smarty.server.HTTPS eq "on"} <p align="center"> {literal} <script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe"> </script> {/literal} </p> {/if}

Dan

Try this...

Code:
{if $smarty.server.HTTPS eq "on" or $smarty.server.HTTP eq "on"} <p align="center"> {literal} <script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe"> </script> {/literal} </p> {/if}
Reply With Quote
  #3  
Old 08-31-2005, 03:31 PM
 
gravel gravel is offline
 

Senior Member
  
Join Date: Mar 2004
Posts: 156
 

Default

Thanks Dongan. However, that won't work, because the Thawte seal generator script only works for authorized domains, and if someone is not logged in, they won't be at secure.oursite.com.

I did get this to work:
Code:
{if $smarty.server.HTTPS eq "on"} <p align="center"> {literal} <script src="https://siteseal.thawte.com/cgi/server/thawte_seal_generator.exe"> </script> {/literal} </p> {else} <p align="center"> [img]http://www.oursite.com/store/skin1/images/thawte2ndtier.gif[/img] </p> {/if}

I used the "Register" page as a link because it is the only https page doesn't require the viewer to be logged in.

Well, it works in IE and Firefox. In terms of the code, I was just guessing, so if anyone sees a better way to code this, that would be great.
__________________
X-Cart version 4.0.17
X-Cart version 4.0.18
Web servers = Apache
OS = Linux
Reply With Quote
  #4  
Old 11-14-2005, 08:54 AM
 
LikeMike LikeMike is offline
 

Member
  
Join Date: Oct 2005
Posts: 26
 

Default

Sorry to resurrect an old thread, but just wanted to thank gravel for this little piece of code. I used it with a Turbo SSL certificate (from godaddy.com only 29.95 or 19.95 if you find a coupon ) and it works very well. Thanks!
__________________
X-Cart Gold Version 4.0.16
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 03:30 PM.

   

 
X-Cart forums © 2001-2020