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)
-   -   Static Pages (https://forum.x-cart.com/showthread.php?t=13810)

karentown 05-04-2005 05:00 AM

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

balinor 05-04-2005 06:20 AM

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.

karentown 05-04-2005 06:25 AM

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?

CenturyPerf 05-04-2005 12:33 PM

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.

balinor 05-04-2005 01:15 PM

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!

karentown 05-05-2005 12:12 AM

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 :)

balinor 05-05-2005 02:45 AM

You need to select a language first, then you will see the options :)

karentown 05-05-2005 08:19 AM

OMG, I could kiss you!!!

Thank you sooooo much! It is all there and working *happy dance* YEAH!!!

freds 05-15-2006 02:50 PM

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?

cwill2200 07-10-2006 09:46 PM

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!


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

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