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

Adding New Pages to Xcart, Help please

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-18-2006, 04:55 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Adding New Pages to Xcart, Help please

I am fairly new to X-Cart and don't really have experience wih PHP and Smarty. However I have managed to set up my xcart store fine for the moment. The only thing I dont get is how it really all works together.

What I want to do: below the categories box on the user front end, add a new "box" below with further links to pages which should be displayed in the main area of x-cart. Basically I just want to add more content pages to x-cart and if possible, administer these from the admin backend.

Any of you guys who can give me a hand with this? Would be greatly appreciated. Thanks.
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
Reply With Quote
  #2  
Old 06-18-2006, 05:00 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

You could easily do this with static pages. Easy to administrate from the admin section and automaticly indexed on the customer side of your store. In your admin directory on the right side you'll find the link to the static pages. Use the embeded pages to create new content pages for your store. These pages will be placed under your help menu items link contact us, privacy statement and terms and conditions.

Note: 4.1.1 is not stable yet and not recommended for live stores. For a stable version you should use the 4.0.18 version which is stable.

If you want to add a new box you have to make a new tpl file with a menu. And cut the code for the static pages out of the help section. But if you don't really have knowledge about the template system you can just make some static pages to get some experience.

Hope this helps.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #3  
Old 06-18-2006, 06:42 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Thanks

Thanks for your quick reply. Sorry that I didnt see the static page link, its working fine now so thanks a lot.

Could you or anyone by chance expand a bit on how to create a new menu and integrating it?

Thanks!
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
Reply With Quote
  #4  
Old 06-18-2006, 07:17 AM
 
katandmouse katandmouse is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 37
 

Default new page without dialog box

I'm trying to do the same thing. This was helpful, however, I don't want my new page content to come up in what I think they call the dialog box. How would I get rid of that?

Is there another way to do this without using the static pages link? I tried copying a php page such as home.php and added an include to my file, but that didn't work. It only showed my file and not the surrounding storefront.
__________________
xcart version 4.0.18
Reply With Quote
  #5  
Old 06-18-2006, 07:18 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

In the skin1 folder look for the help.tpl file.
Inside that file look for this line:

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

Change it to:
Code:
{*{include file="pages_menu.tpl"}*}
This will prevent the static pages showing up in the help section.

To create a menu with only the static pages links:
In the skin1 directory create a new file called for example: new_menu.tpl

And place this code in it:

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

You can adjust the menu to your liking by changing the lbl_help variable.

In skin1/customer/home.tpl insert this code where you want to include the menu:

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

This should do the trick
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #6  
Old 06-18-2006, 09:02 PM
 
katandmouse katandmouse is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 37
 

Default static pages and dialog box

I answered my own question about getting rid of the dialog box in static pages. I commented out the call to that in the customer/main/pages.tpl but then the page was blank. So I created a new dialog_blank.tpl with no fancy table and table top, and then included that in pages.tpl instead. There might be a better way, but for this newbie, it works.
__________________
xcart version 4.0.18
Reply With Quote
  #7  
Old 09-13-2006, 07:56 AM
 
soyuz02 soyuz02 is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 71
 

Default Re: Adding New Pages to Xcart, Help please

I cant seem to get this to work anymore after upgrading to 4.1.3

Any ideas how I can fix this? thanks
__________________
X-Cart Version :: 4.1.6 (Finally)
X-Cart Mods :: Kids Skin by 7dana
Running on :: SUSE Linux 9.3 with Plesk 7.5.4
Webserv :: Apache 2.0.53
mySQL :: 4.1.10
PHP :: 4.3.10
Reply With Quote
  #8  
Old 09-15-2006, 02:36 AM
 
wites wites is offline
 

Advanced Member
  
Join Date: Nov 2003
Posts: 36
 

Default Re: Adding New Pages to Xcart, Help please

can php scripts run under embedded pages?
__________________
X-Cart Gold 4.1.11
X-Cart Gold v4.1.8
X-Cart Gold v4.1.1
X-Cart Gold v4.4.3
X-Cart Gold v4.5.4
Reply With Quote
  #9  
Old 10-26-2006, 03:21 AM
 
Tomola Tomola is offline
 

Newbie
  
Join Date: Oct 2006
Posts: 3
 

Default Re: Adding New Pages to Xcart, Help please

I've done this exact procedure - and it's not working!
Only thing that seems to work is the {* *} which hides the pages from the help.tpl???????
__________________
Version 4.0.19
Reply With Quote
  #10  
Old 10-26-2006, 03:24 AM
 
Tomola Tomola is offline
 

Newbie
  
Join Date: Oct 2006
Posts: 3
 

Default Re: Adding New Pages to Xcart, Help please

ok it works! - but not on the main page?
__________________
Version 4.0.19
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 09:59 PM.

   

 
X-Cart forums © 2001-2020