X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need a IF statement for HTTPS (https://forum.x-cart.com/showthread.php?t=40790)

MOC 06-27-2008 06:54 PM

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

geckoday 06-28-2008 05:16 AM

Re: Need a IF statement for HTTPS
 
{if $smarty.server.HTTPS ne "on"}
chat button
{/if}


All times are GMT -8. The time now is 08:47 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.