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

Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-04-2005, 05:00 AM
 
karentown karentown is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 129
 

Default Static Pages

HI,

I am creating some static pages (embedded). Is there a way to change how they are displayed?

Currently they are under "help" in the middle section but I would like to create a new section maybe called "the store" and have the links there (as there is a retail store and I would like to have pages about classes, images etc).

Also, currently there is a big white space in between the "contact us" button and the "help" section, which would fit perfectly for this new section.

The site is at:


http://www.sweetpeaandmeboutique.com/xcart/home.php
__________________
Running stores using the following:

2@ Version 4.0.19
2@ Version 4.1.9
1@ Version 4.1.11
Reply With Quote
  #2  
Old 05-04-2005, 06:20 AM
 
balinor balinor is offline
 

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

Default

All you would need to do is create a new template, and move this line of code from the help.tpl to the new template you create:

{include file="pages_menu.tpl"}

Then include the new template in the space you mentioned in home.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-04-2005, 06:25 AM
 
karentown karentown is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 129
 

Default

Thank you.

One question though. How exactly do I do that? I know that may sound really easy but my head just exploded. Is it in the manual do you know?
__________________
Running stores using the following:

2@ Version 4.0.19
2@ Version 4.1.9
1@ Version 4.1.11
Reply With Quote
  #4  
Old 05-04-2005, 12:33 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default

I need the same. I need to create embedded "manufacturer" sections and I am having all sorts of trouble doing it with 4.0.13.
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #5  
Old 05-04-2005, 01:15 PM
 
balinor balinor is offline
 

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

Default

Ok, first, go to Edit Templates and create a new template using the dialog box at the bottom of the template list. Let's call it help2.tpl (you can call it whatever you want). Once you create it, click on it in the list and add this code into it:

Code:
{capture name=menu} {include file="pages_menu.tpl"} {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help2 menu_content=$smarty.capture.menu}

Then you will need to go into your Languages (over in the admin menu) and create a new label. This will be the title of your menu (such as help, manufacturers, etc). Create a label called lbl_help2 and name it whatever you want to appear as the title.

Next, you will need to include this file in customer/home.tpl. Not quite sure what template you have there karentown, but you will need to include this bit of code in the area that corresponds to that blank spot:

Code:
{include file="help2.tpl"}

Finally, open up help.tpl (the original) and remove this line of code so your static pages don't show up:

Code:
{include file="pages_menu.tpl"}

Let me know if that works for you!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 05-05-2005, 12:12 AM
 
karentown karentown is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 129
 

Default

Thanks so much for your help. I created a new template called boutique.tpl and pasted the code in as instructed.

I have the fashion template. When I select languages under admin there isnt anywhere to create a new label *unless I am being a total airhead, which is entirely possible!*

this is what it says:

http://www.sweetpeaandmeboutique.com/languages.jpg

Am I in the right place? Thanks
__________________
Running stores using the following:

2@ Version 4.0.19
2@ Version 4.1.9
1@ Version 4.1.11
Reply With Quote
  #7  
Old 05-05-2005, 02:45 AM
 
balinor balinor is offline
 

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

Default

You need to select a language first, then you will see the options
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 05-05-2005, 08:19 AM
 
karentown karentown is offline
 

Senior Member
  
Join Date: Apr 2005
Posts: 129
 

Default

OMG, I could kiss you!!!

Thank you sooooo much! It is all there and working *happy dance* YEAH!!!
__________________
Running stores using the following:

2@ Version 4.0.19
2@ Version 4.1.9
1@ Version 4.1.11
Reply With Quote
  #9  
Old 05-15-2006, 02:50 PM
 
freds freds is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default So close, yet so far away

First of all .. Padraic, thanks so much for saving me loads of time. I've followed your instructions implicitly, but I'm having one last niggling issue. Here's the scenario:
1. I moved the X-cart from /store to the site's root folder. Well .. I didn't actually move it ... just copied it with the store in its original location in case things didn't work out.
2. Created some embedded static pages (Product Info at http://69.57.140.185/).
3. New menu seems to work fine as long as I click only on the items in Product Info.
4. Though I changed my config.php, all the internal links (like Shop Online, Greaseless Fryers, etc.) still point to /store/. I'm using DSEFU and altered the .htaccess file to allow for the new locations.
5. Now, when you click, say, Shop Online the Product Info menu seems to be right aligned. In fact, I found a TD tag in home.tpl which was right aligned. I changed that .. but still no good.

I'm clean out of ideas. Any advise?
Reply With Quote
  #10  
Old 07-10-2006, 09:46 PM
 
cwill2200 cwill2200 is offline
 

Senior Member
  
Join Date: Jun 2006
Posts: 137
 

Default How do I add pages to my help zone?

Actually, I have added the title and content but can't figure out how to make it work.

TIA!
__________________
cwill2200
X-Cart Gold 4.0.18
FreeBSD
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 01:15 AM.

   

 
X-Cart forums © 2001-2020