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

Need help adding item to Help Menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-22-2006, 05:55 PM
 
maurice.grafe maurice.grafe is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 2
 

Default Need help adding item to Help Menu

I am trying to add a new Б─°Help TopicБ─² to the VertMenuItems located on the left side of the home page. I have already moved to this location a few of the X-cart predefined topics such as: Б─°About our siteБ─² and Б─°FAQБ─², this was pretty easy to do.

But when I try to add a new topic like: Б─°Customers HorsesБ─², I am having a great deal of difficulty so say the least. Here is what I have done so far using in the Б─°AdminБ─² program.

1 Б─⌠ Created a new language variable and associated value:
variable -> lbl_customers_horses
value -> Customers Horses

2 Б─⌠ I edited the Б─°help.tplБ─² template and added this code:
{$lng.lbl_customers_horses}


3 Б─⌠ Now the new Help Topic, Б─°Customers HorsesБ─² appears in the left side VertMenuItems box.

4 Б─⌠ I copied the existing template file called -> /help/about.tpl and edited the code text and created a new template file called -> /help/customers_horses.tpl
Here is the new file with edited code:

{* $Id: customers_horses.tpl,v 1.6 2006/02/21 17:55:00 max Exp $ *}



{capture name=dialog}
{$lng.txt_horses}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_customers_horses content=$smarty.capture.dialog extra="width=100%"}
<p align="center">[b]<span style="font-family:Arial;color:black">Test for Customer's Horses Section, put rest of required information here!</p>

5 Б─⌠ Where and how do you define these items from the above two .tpl files? The <A href="help.php?section=horses" and {$lng.txt_horses} must be defined somewhere. How does "section=horses" know to load the customers_horses.tpl file?

Any help would be great since I am a new user to this group. Moe
__________________
X-Cart Gold version 4.0.17
Moe
Reply With Quote
  #2  
Old 02-22-2006, 06:07 PM
 
balinor balinor is offline
 

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

Default

If you create a new embedded static page it will automatically show up as a link on your help menu. Done
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-23-2006, 03:35 AM
 
maurice.grafe maurice.grafe is offline
 

Newbie
  
Join Date: Feb 2006
Posts: 2
 

Default

Ok, but if you do a new HTML catalog once in a while, the users manual gives you this notice:

Warning! This option will remove all *.html files (except shop_closed.html) in the catalog directory before generating a new html catalog.

Doesn't that mean that I will have to re-created it after each new HTML catalog? Or does it leave this new static page alone?

I guess I could try it and see what happens.

Moe
__________________
X-Cart Gold version 4.0.17
Moe
Reply With Quote
  #4  
Old 02-23-2006, 03:35 AM
 
balinor balinor is offline
 

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

Default

The static pages aren't stored in the catalog directory, they are in the skin1/pages/ directory.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-15-2006, 02:57 PM
 
braidedsoul braidedsoul is offline
 

Member
  
Join Date: Oct 2005
Location: Upstate NY
Posts: 23
 

Default changing the order

Quote:
Originally Posted by balinor
If you create a new embedded static page it will automatically show up as a link on your help menu. Done

balinor, would you know how to change the order of the listed items in the HELP section? And would you know how to get the FAQ, Request Password and About Our Site in the menu? They show when you click on the word HELP but I discovered that by accident. Can you help me? Thanks in advance. You people who know this stuff are great!

Joe
__________________
version 4.0.12 x-cart Gold
Reply With Quote
  #6  
Old 03-16-2006, 04:35 AM
 
braidedsoul braidedsoul is offline
 

Member
  
Join Date: Oct 2005
Location: Upstate NY
Posts: 23
 

Default Re: changing the order

Quote:
Originally Posted by braidedsoul
Quote:
Originally Posted by balinor
If you create a new embedded static page it will automatically show up as a link on your help menu. Done

balinor, would you know how to change the order of the listed items in the HELP section? And would you know how to get the FAQ, Request Password and About Our Site in the menu? They show when you click on the word HELP but I discovered that by accident. Can you help me? Thanks in advance. You people who know this stuff are great!

Joe

Replace the code in help.tpl with this code. Works like a dream. You people that help us novice hackers rock!

{* $Id: help.tpl,v 1.19 2004/06/04 12:52:38 svowl Exp $ *}
{capture name=menu}
{$lng.lbl_about_our_site}

{$lng.lbl_contact_us}

{$lng.lbl_privacy_statement}

{$lng.lbl_terms_n_conditions}

{$lng.lbl_faq}

{include file="pages_menu.tpl"}
{$lng.lbl_recover_password}

{/capture}
{ include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php"}
__________________
version 4.0.12 x-cart Gold
Reply With Quote
  #7  
Old 04-19-2006, 12:08 PM
 
smitcare smitcare is offline
 

Member
  
Join Date: Nov 2004
Location: UK
Posts: 12
 

Default

The answer to Moe's question is that you also need to edit the skin1/help/index.tpl file. In that file you will find the mapping of section ID to help file:

{elseif $section eq "about"}
{include file="help/about.tpl"}

{elseif $section eq "business"}
{include file="help/business.tpl"}

etc
__________________
X-Cart Gold 4.0.7 => 4.0.9
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 PM.

   

 
X-Cart forums © 2001-2020