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 a static page to the home page? (https://forum.x-cart.com/showthread.php?t=27599)

smocksam 12-26-2006 04:15 PM

Adding a static page to the home page?
 
At the top of the "home" page there is a spot for a welcome message.

I had my site setup the way I wanted, then I managed to lose it and can't for the life of me remember how I did it!

I have a blog that saves to a static page. I want to display this static html file in the area where the welcome message would be.

So I'd like it where you come to the home page of the site and at the top you'll see the blog.htm file displayed in the center with scroll bars and such. Then when I update the blog people will be able to read it on my site.

I'm using the latest version of Xcart as it's a brand new install.

Thanks in advance!

PhilJ 12-26-2006 04:57 PM

Re: Adding a static page to the home page?
 
In skin1/customer/main/welcome.tpl
add...
Code:

{include file="blog.htm"}

smocksam 12-27-2006 03:16 PM

Re: Adding a static page to the home page?
 
Thanks for the reply, but that just gives me an error message.


Warning: Smarty error: unable to read resource: "page_006.html" in /home/paintbal/public_html/Xcart2k7/Smarty-2.6.12/Smarty.class.php on line 1095


Am I doing something wrong?

PhilJ 12-27-2006 03:29 PM

Re: Adding a static page to the home page?
 
You just need to ensure the path is correct.

Assuming the page is an X-Cart static page, try...

Code:

{include file="./pages/US/page_006.html"}

smocksam 12-27-2006 03:45 PM

Re: Adding a static page to the home page?
 
Hey!! That worked great! Thanks a million.

The problem I've got now is my page_006 is very long. Is there a way to include it into a frame or something to it can have scroll bars?

PhilJ 12-27-2006 03:51 PM

Re: Adding a static page to the home page?
 
You could use an inline frame instead I suppose...
Code:

<iframe src="skin1/pages/US/page_006.html" height="200" width="100%" frameborder="1" scrolling="yes">
Alternative text for browsers that do not understand IFrames.
</iframe>

(the path has changed, as you are now calling the page from the store root)

smocksam 12-27-2006 03:59 PM

Re: Adding a static page to the home page?
 
OH!!! Now that's working just fine!

PhilJ 12-27-2006 04:11 PM

Re: Adding a static page to the home page?
 
Cool, please add your x-cart version to your signature. That will help if you have any future questions :)


All times are GMT -8. The time now is 01:50 AM.

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