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)
-   -   Help area Help (https://forum.x-cart.com/showthread.php?t=29966)

limey66 03-24-2007 11:54 AM

Help area Help
 
I want all my pages in the help area to be static...I have made the pages but how do I get rid of the Help Hyperlink and all the links it takes you to...
terms and conditions, privacy statement etc....I have read a few things on it but still cannot seem to find where to just make the whole Help thing static...( I don't want the title HELP to be clickable)

I sure wish someone would make X-Cart for dummies...I would buy it in a flash...

carpeperdiem 03-24-2007 12:53 PM

Re: Help area Help
 
Quote:

I sure wish someone would make X-Cart for dummies
Michelle, so much of what you need is right in front of you... I'll show you...

You want to ignore the entire Help menu, and instead insert your static pages there. so -- figure out what is making the help menu -- if you use WEBMASTER MODE, you'll see that in /customer/home.tpl, there is a call to file, help.tpl -- let's take a look at help.tpl

You'll see a {capture name=menu}
then a few hard coded links
then a file include "pages_menu.tpl"
then a close tag for the {/capture}
then an include to make the menu

SO -- first, comment out the static pages -- you're half way home

2. See where the include for pages_menu.tpl is? That's the key to your embedded pages. Basically, this template takes your static embedded pages and lists them in the help menu.

3. Want to change the name of the help menu? In the help.tpl, see where it says, "menu_title=$lng.lbl_help" -- that's the name of your menu. If you change lbl_help in your languages, this will change... but why bother doing that? Just change the template. menu_title="Your Groovy Menu Name"

What else? All you have to do is start with webmaster mode and work your way through the insanity of the nested files. WRITE IT DOWN and make a flowchart of what lives where... it will simplify your xcart life. Otherwise, you will be poking around hours at a time...

Hope this wasn't too basic.

Good luck.

Jeremy

limey66 03-27-2007 12:19 PM

Re: Help area Help
 
Hi Jeremy...
Too basic my A**...I'm the gal asking for a dummy book ! ;-)

Thanks for the info...I found all the files you mentioned in the help_tpl area...but what do you mean when you say comment out the static pages ?

Duramax 6.6L 03-29-2007 03:44 PM

Re: Help area Help
 
Comment out the line means to place the dollar sign in front of the line.

#pages you want to block

balinor 03-29-2007 03:56 PM

Re: Help area Help
 
Actually no, commenting out in Smarty uses this:

{* Commented out code *}

the # is used in PHP files only.

carpeperdiem 03-29-2007 03:57 PM

Re: Help area Help
 
Quote:

Comment out the line means to place the dollar sign in front of the line.

#pages you want to block

NO! Not in smarty templates.

To comment out contents of a smarty template, use

{* content to comment out *}

I shoudl not have called the content of help.tpl "static"... the pages in help.tpl that you probably want to comment out so that you can make static links:

Code:

<a href="help.php?section=contactus&amp;mode=update">{$lng.lbl_contact_us}</a>
<a href="help.php?section=business">{$lng.lbl_privacy_statement}</a>
<a href="help.php?section=conditions">{$lng.lbl_terms_n_conditions}</a>


SO -- make these lines:

Code:

{* <a href="help.php?section=contactus&amp;mode=update">{$lng.lbl_contact_us}</a>
<a href="help.php?section=business">{$lng.lbl_privacy_statement}</a>
<a href="help.php?section=conditions">{$lng.lbl_terms_n_conditions}</a> *}


THEN -- write your static pages in here. Or not -- use pages_menu.tpl for your static pages. There is more than one way to get content in here.

Remember, help.tpl is calling an include for pages_menu.tpl
- {include file="pages_menu.tpl"} -
so it doesn't matter where the links live.


All times are GMT -8. The time now is 03:32 PM.

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