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

How do I include an HTM file in head.tpl ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-08-2006, 01:01 PM
 
fogelka fogelka is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 83
 

Default How do I include an HTM file in head.tpl ?

I have an existing header (from a template I purchased, and then customized in FrontPage) that I wanted to use in place of the xcart header. I have been able to put most of it in. However, it apparently does not recognize this sort of call:

<!--webbot bot="Include" u-include="includes/topblock.htm" tag="BODY" -->

For this code, no results at all were seen, and there were no errors listed either, so...

I tried this:

{include file="includes/topblock.htm" }

...but got this error in the header:

Warning: Smarty error: unable to read resource: "includes/topblock.htm"
in /public_html/shop/Smarty-2.6.9/Smarty.class.php on line 1088

I changed it to this:

<!--#include file="includes/topblock.htm"-->

... but just like with the webbot instruction, nothing at all shows up.

Do I need to change the .htm files to .tpl files? I tried that, and the same problem happened, but I could have missed putting a reference in an index file or such?

Maybe I'm going in completely the wrong direction. A little help??? Thanks!
__________________
xcart v4.0.18 [linux]

Loyalty Points, DSEFU, Easy Checkout, Featured Product Manager, Remember Me, Relevant Search, Vertical Flyouts, Multiple Category Templates. Loads of other tweaks and mods learned in forums.
Reply With Quote
  #2  
Old 10-08-2006, 09:56 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: How do I include an HTM file in head.tpl ?

Put everything you want to include in a template file (rename it to end in .tpl) Upload your new template to the skin1 directory. Then add this to the head.tpl where you want the new template to show.

HTML Code:
{include file="your_template.tpl"}

That's it.
Reply With Quote
  #3  
Old 10-09-2006, 04:30 PM
 
fogelka fogelka is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 83
 

Default Re: How do I include an HTM file in head.tpl ?

Big thanks. That worked like a charm!
__________________
xcart v4.0.18 [linux]

Loyalty Points, DSEFU, Easy Checkout, Featured Product Manager, Remember Me, Relevant Search, Vertical Flyouts, Multiple Category Templates. Loads of other tweaks and mods learned in forums.
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 09:36 PM.

   

 
X-Cart forums © 2001-2020