Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How can I have code specific to the Secure Cart page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-24-2006, 02:36 AM
 
azmal azmal is offline
 

Newbie
  
Join Date: May 2005
Posts: 4
 

Default How can I have code specific to the Secure Cart page?

Just to explain - I have a some tracking code (which uses an http:// link) in the code on home.tpl (so it will be present on all site pages)

However, when the secure pages appear (when entering Credit Card details) the browser states that there are both secure and non-secure items (i.e the tracking link).

All I need is for an if statement to determine whether the user is in the credit card entering page on the site, and therefore the tracking link will be disabled).

Is this possible? And what would the if statement look like?
Many thanks!
__________________
X-Cart Version 4.0.13
Reply With Quote
  #2  
Old 03-24-2006, 05:25 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Code:
{if $smarty.server.SERVER_PORT == 443} secure path and code goes here {else} non-secure path and code goes here {/if}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:25 PM.

   

 
X-Cart forums © 2001-2020