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

Adding new sub Menu to home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-08-2004, 02:31 AM
 
Aragorn Aragorn is offline
 

Member
  
Join Date: Mar 2004
Location: UK
Posts: 23
 

Default Adding new sub Menu to home page

Hi... I'm a newbie struggling along to learn xCart / PHP / TPL etc.etc.etc....

Any help (step by step) would be appreciated.

(1) I want to create a another "sub menu" like the Categories Menu on the home page called Manufactures. How can I do that easily?

(2) I want to add a few "speed bars" at the top of my home page. I see where to do that in ADMIN site, but after I define a .php file... now what? (For example, if I want to create a "speed bar menu item" called ABOUT US... do I create a aboutus.php file?... and if so, how do I do that?

(3) I also use NetObjects Fusion and want to use some of the NetObjects pages in xCart... how can I do that? (Or should I try to insert xCart into NetObjects Fusion?)

(4) How can I learn quickly what all the symbols in the .tpl files stand for (I'm sure much of this is HTML... which I probably need to re-learn... but is there a "crib sheet" for .tpl somewhere?)

(5) How can I have 2 columns and 2 rows on the front page for my FEATURED ITEMS?


Thanks for any help, insights, or direction.

Kindest Regards,
Aragorn



X-Cart Gold edition latest version
Running on Apache Server
PC running Windows 2000
Reply With Quote
  #2  
Old 05-08-2004, 05:53 AM
 
natalieb natalieb is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: The Netherlands, Lelystad
Posts: 42
 

Default

Hi,
Best is to post these questions in another forum.
instead of Mods. Better post your questions in template editing or something.

Here is my bit:

1) Best is to copy an existing menu (piece of text) and just paste it where you want it.
Go to edit templates,customer folder and copy for example { include file="help.tpl" } in the home.tpl and paste it where you like on home.tpl

Or :
Create a new tpl named manufacturers.tpl, just right in the first page of edit templates.

Now go to customer folder, home.tpl and add the following where you want. For example right after specials.
{ include file="manufacturers.tpl" }
Don't forget to put
before and after.

Now you can edit your manufacturers.tpl
Here you can add your text or whatever you like.
It might be handy to use the languages in here so you can easily change the content.

Example manufacturers.tpl

{* $Id: manufacturers,v 1 2004/08/05 15:30:40 svowl Exp $ *}
{capture name=menu}
<class=VertMenuItems>
PUT YOUR TEXT HERE (or $lng.txt_manufacturers)
{/capture}
{ include file="menu.tpl" dingbats="dingbats_products.gif" menu_title=$lng.lbl_manufacturers
menu_content=$smarty.capture.menu"}
END

Of course you need to add labels and text if you wish to use the languages.
Just make a
manufacturers label
manufacturers text
Also you can change the dingbats or leave it out.

2) Just create the speedbar you like
Go to static pages and create a new page: About us
Copy the link that will point to this page and paste it in the link field of your speed bar.

4) You will learn quick enough in working with x-cart

Handy is to get familiar with the language labels and text.
This way you just change text easily in the languages.
Labels go on top/ the name of a menu for example
and text is the content. You can make your own and insert anywhere you like.
See news.tpl for example
{$lng.txt_subscribe_monthly}

And look into the "include files"
If you know that you have the basics.

5) In the admin area go to general settings, in the drop down menu choose appearance
Here you can choose
Display products list in multiple columns (1-3) (leave empty to use standard format): PUT 2
If you only want the featrured items to look like that tick the next box too
Display only featured products list in multicolumn format


The rest...netvusion...no idea
Last:
BACK UP before you do anything
__________________
Regards,

Natalie

Ver. X-cart-gold 4.1.3 [UNIX}
-add on affiliate
Reply With Quote
  #3  
Old 05-08-2004, 09:01 AM
 
Aragorn Aragorn is offline
 

Member
  
Join Date: Mar 2004
Location: UK
Posts: 23
 

Default Thanks!

Thanks Natalie... this is great!

Will get to work right away.


I appreciate it!
Aragorn
Reply With Quote
  #4  
Old 05-08-2004, 10:30 AM
 
Aragorn Aragorn is offline
 

Member
  
Join Date: Mar 2004
Location: UK
Posts: 23
 

Default

Hi Natalie,

If I may... a followup question or two:

1) I've created a manufacturers.tpl (copied the categories.tpl and replaced every "categories" with "manufactures")

Here is the code for that:

{* $Id: manufactures.tpl,JBv 1.19 2003/11/11 14:02:32 svowl Exp $ *}
{capture name=menu}

<class=VertMenuItems>


{if $active_modules.Fancy_manufacturesne ""}
{include file="`$fancymanufactures_config.modules_path`/fancy_manufactures.tpl"}
{else}
{if $config.General.root_manufactures eq "Y"}
{section name=manufacture_num loop=$manufactures}
<font class=manufacturesList>{ $manufactures[manufacture_num].manufactures_name|escape }</font>

{/section}
{else} {section name=manufacture_num loop=$submanufactures}
<font class=manufacturesList>{ $submanufactures[manufacture_num].manufactures_name|escape }</font>

{/section}
{/if}
{/if}



{/capture}
{ include file="menu.tpl" dingbats="dingbats_manufactures.gif"
menu_title=$lng.lbl_manufactures
menu_content=$smarty.capture.menu }




2) I get the following error

Parse error: parse error in /home/maxtarco/public_html/store/templates_c/.^customer^manufactures.tpl on line 10


Any ideas?


thanks,
Juergen


PS - how do I move all this to the correct forum? (thanks )
Reply With Quote
  #5  
Old 05-08-2004, 10:32 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

I am sure one of our trusty moderators will come along and move it.

If you have a question about how to correct or implement a mod, please don't add it to this thread. Add it to the existing one. That will help other users who encounter similar challenges.

Template Editing is the forum you should be using for stuff like this...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 06:02 PM.

   

 
X-Cart forums © 2001-2020