| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
if/then statement based on http vs https? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is it possible to use an if/then statement depending on if you are on an https page versus an http page? If so, what is $variable for that?
Why I'm asking... My site uses "top sites" banners on the pages and those banner images do not pull from https/secure sites. The rest of the store area is on a secure server and so, when a customer registers/logs in, they switch from browsing http pages to the https pages and keep getting that annoying "This page contains both secure and non-secure items." I'd like to have the banners displayed when on http and turned off when on https pages.
__________________
currently: 4.7.1 previously: XCart Version 4.4.5 Pro |
|||||||
#2
|
|||||||
|
|||||||
![]() {if $smarty.server.HTTPS eq "on"}
content for secure page {else} content for insecure page {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#3
|
|||||||
|
|||||||
![]() Worked perfectly! Thanks ever so much!!!!
__________________
currently: 4.7.1 previously: XCart Version 4.4.5 Pro |
|||||||
#4
|
|||||||
|
|||||||
![]() Sorry if i am asking a dumb question, but i am in the same situation as vickis.
Where abouts do i place the above code?
__________________
Sunset X-Cart Gold v4.1.8 |
|||||||
#5
|
|||||||
|
|||||||
![]() It is meant to be used to show one thing if the page is secure, and one if not secure, so you would place it wherever you want those items to show.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() Thanks very much Balinor
__________________
Sunset X-Cart Gold v4.1.8 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|