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)
-   -   Need help adding item to Help Menu (https://forum.x-cart.com/showthread.php?t=20106)

maurice.grafe 02-22-2006 05:55 PM

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

balinor 02-22-2006 06:07 PM

If you create a new embedded static page it will automatically show up as a link on your help menu. Done :)

maurice.grafe 02-23-2006 03:35 AM

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

balinor 02-23-2006 03:35 AM

The static pages aren't stored in the catalog directory, they are in the skin1/pages/ directory.

braidedsoul 03-15-2006 02:57 PM

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

braidedsoul 03-16-2006 04:35 AM

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"}

smitcare 04-19-2006 12:08 PM

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


All times are GMT -8. The time now is 05:26 PM.

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