HTTPS question

I have a question regarding switching from http to https mode when I login for example.



I have an SSL certificate and all works perfectly for the checkout, login except one small thing - I have in my main.tpl file a link to a site via http not https - so when i switch to https mode in my site, I end up getting a message:



This page contains both secure and nonsecure items. Do you want to display the nonsecure items?



I know its the reference to this external site - because it is reference http and not https - is there any quick work around for this?



Thanks

[quote name=‘DELTA9000’]I have a question regarding switching from http to https mode when I login for example.



I have an SSL certificate and all works perfectly for the checkout, login except one small thing - I have in my main.tpl file a link to a site via http not https - so when i switch to https mode in my site, I end up getting a message:



This page contains both secure and nonsecure items. Do you want to display the nonsecure items?



I know its the reference to this external site - because it is reference http and not https - is there any quick work around for this?



Thanks[/QUOTE]



Do something like



{if $current_location == $https_location}

===========

{else}

===========

{/if}

smavtron



ok - didnt really think of that - that will at least get rid of the warning message and I can live without the link being shown on the ssl pages



going to try it out.



THANKS

Worked like a charm - amazing - thanks again for your assistance

I have a similar problem but its on all my links, i think its down to the seo being on, don’t suppose you know how to fix this?



Any help will be appreciated.

[quote name=‘smavtron’]Do something like



{if $current_location == $https_location}

===========

{else}

===========

{/if}
[/quote]

I have the same problem with the “non-secure and secure items being displayed” and its looks like its been scarring off my potential customers, where exactly do you put this code?

[quote name=‘tribalboy3000’]I have the same problem with the “non-secure and secure items being displayed” and its looks like its been scarring off my potential customers, where exactly do you put this code?[/QUOTE]



Usually the problem is with images that do not have a secure path called on a secure page… I think if you call the images with a relative path on secure pages you won’t have this problem - let us know if you solve your problem

Can someone tell me exactly where the above pasted code should go to alleviate the https issue that started this thread?



Thanks.

Tribal Boy, I found out the code goes around the http: script or link.



So for statcounter code it would look like this:



[COLOR=“Olive”]


[COLOR=“red”]{if $current_location == $https_location}[/COLOR]

free hit counter

[COLOR=“red”]{else}[/COLOR]

free hit counter

[COLOR=“red”]{/if}[/COLOR]

[/COLOR]

The problem is that with that code inserted, it drags my page to a slow crawl trying to download the footer with the code in it.

Maybe it will work for you, but there has to be another way.

BR
(newest cs-cart ver.)