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)
-   -   Adding HTML To Home Page (https://forum.x-cart.com/showthread.php?t=45591)

Duramax 6.6L 02-15-2009 04:41 PM

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.

Victor D 02-16-2009 04:06 AM

Re: Adding HTML To Home Page
 
It's difficult to say anything without having a look on HTML and error message content.

PhilJ 02-16-2009 06:42 AM

Re: Adding HTML To Home Page
 
If there's javascript in the code, try wrapping {literal}...{/literal} tags around the Kayako code.

Duramax 6.6L 02-16-2009 03:45 PM

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

balinor 02-16-2009 03:51 PM

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.

Duramax 6.6L 02-16-2009 03:54 PM

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

balinor 02-16-2009 04:19 PM

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}

Duramax 6.6L 02-16-2009 05:08 PM

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.

balinor 02-16-2009 05:22 PM

Re: Adding HTML To Home Page
 
You'd need to ask the software vendor that question.

Duramax 6.6L 02-16-2009 05:37 PM

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.

balinor 02-16-2009 05:39 PM

Re: Adding HTML To Home Page
 
Glad I could help :)


All times are GMT -8. The time now is 11:25 AM.

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