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

Adding HTML To Home Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-15-2009, 04:41 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default 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.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #2  
Old 02-16-2009, 04:06 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Adding HTML To Home Page

It's difficult to say anything without having a look on HTML and error message content.
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #3  
Old 02-16-2009, 06:42 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Adding HTML To Home Page

If there's javascript in the code, try wrapping {literal}...{/literal} tags around the Kayako code.
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 02-16-2009, 03:45 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Adding HTML To Home Page

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

Click image for larger version

Name:	Support.jpg
Views:	192
Size:	45.9 KB
ID:	1374
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #5  
Old 02-16-2009, 03:51 PM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 02-16-2009, 03:54 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default 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
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #7  
Old 02-16-2009, 04:19 PM
 
balinor balinor is offline
 

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

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 02-16-2009, 05:08 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default 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.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #9  
Old 02-16-2009, 05:22 PM
 
balinor balinor is offline
 

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

Default Re: Adding HTML To Home Page

You'd need to ask the software vendor that question.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 02-16-2009, 05:37 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default 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.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote

The following user thanks Duramax 6.6L for this useful post:
headshigh (05-15-2011)
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 02:25 PM.

   

 
X-Cart forums © 2001-2020