X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Where to put my live chat code (https://forum.x-cart.com/showthread.php?t=53807)

Crossroadsonline 05-18-2010 07:44 AM

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.

balinor 05-18-2010 10:25 AM

Re: Where to put my live chat code
 
Really tough to say without seeing the installation instructions.

Crossroadsonline 05-18-2010 10:31 AM

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.

balinor 05-18-2010 10:53 AM

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!

Crossroadsonline 05-18-2010 10:53 AM

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?

hoosierglass 05-18-2010 12:49 PM

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

ambal 05-19-2010 05:37 AM

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


All times are GMT -8. The time now is 07:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.