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

Adding a static page to the home page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-26-2006, 04:15 PM
 
smocksam smocksam is offline
 

Member
  
Join Date: Aug 2003
Posts: 24
 

Default 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!
Reply With Quote
  #2  
Old 12-26-2006, 04:57 PM
 
PhilJ PhilJ is offline
 

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

Default Re: Adding a static page to the home page?

In skin1/customer/main/welcome.tpl
add...
Code:
{include file="blog.htm"}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 12-27-2006, 03:16 PM
 
smocksam smocksam is offline
 

Member
  
Join Date: Aug 2003
Posts: 24
 

Default 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?
Reply With Quote
  #4  
Old 12-27-2006, 03:29 PM
 
PhilJ PhilJ is offline
 

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

Default 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"}
__________________
xcartmods.co.uk
Reply With Quote
  #5  
Old 12-27-2006, 03:45 PM
 
smocksam smocksam is offline
 

Member
  
Join Date: Aug 2003
Posts: 24
 

Default 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?
Reply With Quote
  #6  
Old 12-27-2006, 03:51 PM
 
PhilJ PhilJ is offline
 

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

Default 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)
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
pauline (07-20-2012)
  #7  
Old 12-27-2006, 03:59 PM
 
smocksam smocksam is offline
 

Member
  
Join Date: Aug 2003
Posts: 24
 

Default Re: Adding a static page to the home page?

OH!!! Now that's working just fine!
Reply With Quote
  #8  
Old 12-27-2006, 04:11 PM
 
PhilJ PhilJ is offline
 

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

Default 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
__________________
xcartmods.co.uk
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 10:52 AM.

   

 
X-Cart forums © 2001-2020