![]() |
Adding HTML To Home Page
I am trying to add the live support icon to the customer/home.tpl.
The code is generated html from Kayako Support Suite. If I add it as html in the home.tpl I get an error messages. I tried putting the code in a file and saving it as a kayako_support.tpl, then called on the file with the include. This through errors also. {include file="skin1/customer/kayako_support.tpl"} Could someone please explain how to add this step by step. Thank you for your time in advance. |
Re: Adding HTML To Home Page
It's difficult to say anything without having a look on HTML and error message content.
|
Re: Adding HTML To Home Page
If there's javascript in the code, try wrapping {literal}...{/literal} tags around the Kayako code.
|
Re: Adding HTML To Home Page
1 Attachment(s)
This is the code I am trying to add:
<!-- Begin SupportSuite Javascript Code --> <script language="javascript" src="http://www.domain.com/support/visitor/index.php?_m=livesupport&_a=htmlcode&departmentid= 0"></script> <!-- End SupportSuite Javascript Code --> I would like it to look this this when I am finished Attachment 1374 |
Re: Adding HTML To Home Page
{literal}<!-- Begin SupportSuite Javascript Code -->
<script language="javascript" src="http://www.domain.com/support/visitor/index.php?_m=livesupport&_a=htmlcode&departmentid= 0"></script> <!-- End SupportSuite Javascript Code -->{/literal} You'll want to call a secure version on the secure pages though or it will pop-up a security warning. |
Re: Adding HTML To Home Page
How would I insert that in to the home page and call a secure version when in secure pages.
I realy appreciate the help |
Re: Adding HTML To Home Page
Insert it into customer/home.tpl in the right column as per your image. You'd need the secure version of the code from them (not always just as simple as using https) and then you'd use an {if} statement to show different code based on http or https like this:
{if $smarty.server.HTTPS eq "on"} secure code {else} regular code {/if} |
Re: Adding HTML To Home Page
Is there a way to determine the size of the window that open when you click on the support image that could be added to the code.
|
Re: Adding HTML To Home Page
You'd need to ask the software vendor that question.
|
Re: Adding HTML To Home Page
Balinor,
I just wanted to say THANK YOU for your help. You have helped me out numerous times. If you were not part of this forum, I do not think X-Cart would be as successful as it is. With all the updates and version changes, and the difficulty of upgrading the store, I have looked at other carts, but I decided to stay with X-Cart because of you and a few other that go above and beyond to help me. Again, THANK YOU for all your help. |
All times are GMT -8. The time now is 04:33 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.