| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Secure Site Seal | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Secure Site Seal
Is there an easy smarty tag to include a .tpl file everytime the url is https? I'm not very familure with smarty's so I thought I'd ask this here. I'd just like to include a SSL Cert Seal when the cart goes secure, that way I don't have to add it to every page that is secure by hand.
Thank!
__________________
RobotDeathSquad Version 4.0.11 |
|||||||
#2
|
|||||||||
|
|||||||||
add this {if} statement
Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
Quote:
Kick Ass!
__________________
RobotDeathSquad Version 4.0.11 |
|||||||
#4
|
|||||||
|
|||||||
Which file would I put this in if I wanted it to be on everypage in the site?
__________________
RobotDeathSquad Version 4.0.11 |
|||||||
#5
|
|||||||||
|
|||||||||
home.tpl is the main file that others fit around
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#6
|
|||||||
|
|||||||
Not working for me :(
I tried this and get the following error:
Fatal error: Smarty: [in customer/main/checkout.tpl line 50]: syntax error: unidentified token '["HTTPS"]' (Smarty_Compiler.class.php, line 1236) in C:\Program Files\Apache Group\Apache2\www\dijacopy\xcart\Smarty-2.5.0\Smarty_Compiler.class.php on line 1832 any ideas |
|||||||
#7
|
|||||||
|
|||||||
.
what should I use if I want it to just show in like contact us or about pages.
I will just make a new tpl and put the image in that. Do you think this will work {if $sec eq "about"} {include file="abcd.tpl"} thanks. |
|||||||
#8
|
|||||||
|
|||||||
arrrgggg!!!
I did some reading up on smarty, and found some info on environment variables... so I tried this:
{if $smarty.server.HTTPS} This is a secure site. {/if} but guess what? I get the same error. EXACT same error. Could this be a smarty bug |
|||||||
|
|||
X-Cart forums © 2001-2020
|