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

Need a IF statement for HTTPS

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-27-2008, 06:54 PM
 
MOC MOC is offline
 

Senior Member
  
Join Date: Oct 2002
Posts: 171
 

Question Need a IF statement for HTTPS

hi
could someone provide me with an if statement which excludes something, when the shop is called over https?

i would like to include a live chat button. everytime my shop changes from http to https, i get this terrible error message in my browser, that this site isn't secure (Because of the http:// image loading)

i don't wanna buy an extra ssl certificate for my live chat domain, so i would like to exclude the button completely once the shop uses the https server.

what if statement do i have to wrap around my code, to "remove" it?

thanks in advance
__________________
X-Cart Gold Version 3.5.14 (Live)
X-Cart Gold Version 4.1.10 (in dev)

Modification for 4.1.10
Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations
Reply With Quote
  #2  
Old 06-28-2008, 05:16 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Need a IF statement for HTTPS

{if $smarty.server.HTTPS ne "on"}
chat button
{/if}
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
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 05:13 PM.

   

 
X-Cart forums © 2001-2020