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

Where to put my live chat code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-18-2010, 07:44 AM
 
Crossroadsonline Crossroadsonline is offline
 

Member
  
Join Date: Jul 2009
Posts: 18
 

Default Where to put my live chat code

I recieved html code from PHP Live, but I am unable to figure out where I need to put it to get it to show on the site.

http://www.crossroadsonline.com is the site and I'd like to put it on the right hand side above the search bar.
__________________
X-cart Version 4.2
X-Cart Pro
Reply With Quote
  #2  
Old 05-18-2010, 10:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where to put my live chat code

Really tough to say without seeing the installation instructions.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-18-2010, 10:31 AM
 
Crossroadsonline Crossroadsonline is offline
 

Member
  
Join Date: Jul 2009
Posts: 18
 

Default Re: Where to put my live chat code

The install instructions give html code.
Quote:
WEBSITE HTML CODE. Simply copy the below code into your webpages.
Please keep the code EXACTLY the way it shows. Make sure your HTML editing program does not break up the long lines.
NOTE: Place the code INSIDE the <body> tags. Failure to do so may cause errors.

<!-- BEGIN PHP Live! code, (c) OSI Codes Inc. -->
<script language="JavaScript" src="http://trial3.phplivesource.com/js/status_image.php?base_url=http://trial3.phplivesource.com&l=johncroads&x=10492&dept id=8590&"><a href="http://www.phplivesource.com"></a></script>
<!-- END PHP Live! code : (c) OSI Codes Inc. -->

The problem is, I don't know where the code the builds the right hand menu is. I tried just putting it in the home.php by closing the php tag, putting it where I wanted it to be, then reopening an new php tag to continue the rest of the page but that crashed the site.
__________________
X-cart Version 4.2
X-Cart Pro
Reply With Quote
  #4  
Old 05-18-2010, 10:53 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Where to put my live chat code

No, you can't put that in PHP files, it would go in the templates. As for which template, you need to use Webmaster Mode to determine where - most likely skin1/customer/home.tpl. Just be sure to backup first!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-18-2010, 10:53 AM
 
Crossroadsonline Crossroadsonline is offline
 

Member
  
Join Date: Jul 2009
Posts: 18
 

Default Re: Where to put my live chat code

I can just paste the html code in the template as is? no need for any extra code?
__________________
X-cart Version 4.2
X-Cart Pro
Reply With Quote
  #6  
Old 05-18-2010, 12:49 PM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Where to put my live chat code

go to skin1/customer/home.tpl

You are going to look for the right side bar menu call. It will look something like this: <div id="right-bar">

Below that you will see where it calls for the search menu. Above that is where you will need to put your code.

<!-- BEGIN PHP Live! code, (c) OSI Codes Inc. -->
<script language="JavaScript" src="http://trial3.phplivesource.com/js/status_image.php?base_url=http://trial3.phplivesource.com&l=johncroads&x=10492&dept id=8590&"><a href="http://www.phplivesource.com"></a></script>
<!-- END PHP Live! code : (c) OSI Codes Inc. -->

I would suggest adding a line break <br /> so that it doesn't sit right on top of your seach and gets clicked accidently.

Mike
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #7  
Old 05-19-2010, 05:37 AM
  ambal's Avatar 
ambal ambal is offline
 

X-Cart team
  
Join Date: Sep 2002
Posts: 4,121
 

Default Re: Where to put my live chat code

moved to X-Cart Customization > Storefront Design & Template Editing in v 4.2.x and 4.3.x
__________________
Sincerely yours,
Alex Mulin
VP of Business Development for X-Cart
X-Payments product manager
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 08:00 AM.

   

 
X-Cart forums © 2001-2020