View Single Post
  #1  
Old 09-26-2005, 07:43 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Help with Conditional

Hello,

I use live support on my sites and I have two sets of code...one for the secure site https and one for non secure http. I am told that the https code takes longer to load and I don't need it until the customer gets to checkout.

How would I code a conditional to use the secure button code with the customer goes to checkout and use the regular button code when they are just shopping?

I know it would be something like:

Code:
{if ????????} <script language="JavaScript" src="https://xxxxxxx.xxx"></script>[img]https://xxxxxxx.gif[/img]<noscript>[img]https://secure.providesupport.com/image/spacer.gif[/img]</noscript> {else} <script language="JavaScript" src="http://xxxxxxx.xxx"></script>[img]http://xxxxxxx.gif[/img]<noscript>[img]http://providesupport.com/image/spacer.gif[/img]</noscript> {/if}

What goes where I have the question marks?

Hope that makes senses....thanks

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote