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

Secure Site Seal

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-06-2003, 11:54 AM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default Secure Site Seal

Is there an easy smarty tag to include a .tpl file everytime the url is https? I'm not very familure with smarty's so I thought I'd ask this here. I'd just like to include a SSL Cert Seal when the cart goes secure, that way I don't have to add it to every page that is secure by hand.

Thank!
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #2  
Old 06-06-2003, 02:40 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

add this {if} statement

Code:
{if $_SERVER["HTTPS"] != 'on'} blah blah blah blah {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 06-06-2003, 03:33 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

Quote:
Originally Posted by shan
add this {if} statement

Code:
{if $_SERVER["HTTPS"] != 'on'} blah blah blah blah {/if}

Kick Ass!
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #4  
Old 06-17-2003, 01:00 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

Which file would I put this in if I wanted it to be on everypage in the site?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #5  
Old 06-17-2003, 01:25 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

home.tpl is the main file that others fit around
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 11-05-2003, 11:37 PM
 
jaedendak jaedendak is offline
 

Newbie
  
Join Date: Nov 2003
Posts: 2
 

Default Not working for me :(

I tried this and get the following error:

Fatal error: Smarty: [in customer/main/checkout.tpl line 50]: syntax error: unidentified token '["HTTPS"]' (Smarty_Compiler.class.php, line 1236) in C:\Program Files\Apache Group\Apache2\www\dijacopy\xcart\Smarty-2.5.0\Smarty_Compiler.class.php on line 1832


any ideas
Reply With Quote
  #7  
Old 11-05-2003, 11:49 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default .

what should I use if I want it to just show in like contact us or about pages.

I will just make a new tpl and put the image in that.

Do you think this will work

{if $sec eq "about"}
{include file="abcd.tpl"}

thanks.
Reply With Quote
  #8  
Old 11-06-2003, 12:01 AM
 
jaedendak jaedendak is offline
 

Newbie
  
Join Date: Nov 2003
Posts: 2
 

Default arrrgggg!!!

I did some reading up on smarty, and found some info on environment variables... so I tried this:

{if $smarty.server.HTTPS}
This is a secure site.
{/if}

but guess what? I get the same error. EXACT same error. Could this be a smarty bug
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 07:21 AM.

   

 
X-Cart forums © 2001-2020