Jump to content

How to display a graphic only on pages that use SSL?


Recommended Posts

I want to display a graphic seal that shows my customers that their data is protected b/c we use SSL, but *only* on the https pages (authentication, my-account and order). Ideally, it should magically appear below the graphic in the right column that shows Visa/MC/PayPal (which I have situated below the cart module) but again, only on the pages that use SSL (account creation, cart, ordering).

I have tried adding the html code to the AddStuff module and adding it (via Transplant module) to the following hooks:
* Cart creation & update
* Order confirmation page
* Successful customer create account
* Customer account creation form

but it is not showing up in any of those locations on any of those pages. I'm not sure why but that isn't working for me.

I'm thinking perhaps the best way to accomplish this is not to have the graphic within a module at all but to add it to some of the .tpl files? (authentication, my-account, order address, order confirmation, order detail, etc.)

Is that the best way to accomplish this? And if so, can I just add the html in somewhere? If not, what would be a better way to do it?

Link to comment
Share on other sites

I suggest that you modify modules/blockpaymentlogo/blockpaymentlogo.tpl and add the following before the :

{if $smarty.server.HTTPS eq 'on'}
<img src="{$img_dir}secure_logo.jpg" alt="Secure" width="100" height="100" />
{/if}



Put the logo in the img directory inside your theme, then change the filename, alt text, width and height above to match the image.

Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...