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)
-   -   How do I include an HTM file in head.tpl ? (https://forum.x-cart.com/showthread.php?t=25630)

fogelka 10-08-2006 01:01 PM

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!

wjbrewer 10-08-2006 09:56 PM

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.

fogelka 10-09-2006 04:30 PM

Re: How do I include an HTM file in head.tpl ?
 
Big thanks. That worked like a charm!


All times are GMT -8. The time now is 12:12 PM.

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