| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to have different head.tpl for http vs https pages | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I am using a free tracking/customer chat tool called Livezilla (www.livezilla.com). For simplicity, I installed the 'chat' button into the head.tpl file...the problem is that the code points to a non SSL HTTP graphic and code. This means that during checkout, our customers are getting a 'this page contains unsecured elements' error which tends to freak them out. Looking for the easiest solution to fix this. Would it be easier to split the head.tpl into two separate files (one for http & one for https), or would it be simpler to figure out how to use javascript to replace the hard-coded path of: <a href="javascript:void(window.open('http://www.naturalbathandbodyshop.com/livezilla/livezilla.php' with this? <a href="{$http_location}/"> My javascripting (I assume this is javascript) really sucks, how would you integrate that bottom snippet with the top piece? thanks in advance, the beggining part of my head.tpl listed below... Code: Code:
__________________
Marc Washburn Natural Bath & Body Shop P.O. Box 2555 Tarpon Springs, FL 34688 marc@naturalbathandbodyshop.com www.naturalbathandbodyshop.com Mod Newbie X-cart 4.4.5 - Now Live !!! Hurray! X-cart 4.2.1 - Delicae Gourmet |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You just need to put your live chat image in your root skin directory
Image Appears here > http://www.naturalbathandbodyshop.com/livezilla/image.php?id=03
__________________
Thank You - Alan Don't be like me, and keep saying "Nearly did it" go do it!! Version: 4.4.4 Gold - |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Just to note |I don't know if you turned secured off but when I buy product and go to checkout it's still on /http:
__________________
Thank You - Alan Don't be like me, and keep saying "Nearly did it" go do it!! Version: 4.4.4 Gold - |
|||||||||
#4
|
|||||||
|
|||||||
![]() Thanks for the reply,
I found a problem in which I had the wrong setting for: "Do not redirect customers from HTTPS to HTTP:" I had it checked when it should have been unchecked (isn't that option written backwards? shouldn't it be HTTP to HTTPS?" Back to the original problem, I solved it in a lazy way, but it seems to work great. I changed it so the code in the head.tpl file now ALWAYS loads the LiveZilla Graphic and PHP counter pages via secure HTTPS. This way there won't be a complaint during checkout. Now of course this probably will have a slight performance impact on the other non SSL pages, but it solves the problem....hurray and thanks for the suggestion, it got my brain to start thinking.
__________________
Marc Washburn Natural Bath & Body Shop P.O. Box 2555 Tarpon Springs, FL 34688 marc@naturalbathandbodyshop.com www.naturalbathandbodyshop.com Mod Newbie X-cart 4.4.5 - Now Live !!! Hurray! X-cart 4.2.1 - Delicae Gourmet |
|||||||
|
|||
X-Cart forums © 2001-2020
|