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

Help area Help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-24-2007, 11:54 AM
  limey66's Avatar 
limey66 limey66 is offline
 

Senior Member
  
Join Date: Feb 2006
Location: N.Ontario, Canada
Posts: 190
 

Default 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...
__________________
Thanks Michelle.
www.herb-care.com

Version # 4.6.3
Reply With Quote
  #2  
Old 03-24-2007, 12:53 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 03-27-2007, 12:19 PM
  limey66's Avatar 
limey66 limey66 is offline
 

Senior Member
  
Join Date: Feb 2006
Location: N.Ontario, Canada
Posts: 190
 

Default 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 ?
__________________
Thanks Michelle.
www.herb-care.com

Version # 4.6.3
Reply With Quote
  #4  
Old 03-29-2007, 03:44 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Help area Help

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

#pages you want to block
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #5  
Old 03-29-2007, 03:56 PM
 
balinor balinor is offline
 

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

Default Re: Help area Help

Actually no, commenting out in Smarty uses this:

{* Commented out code *}

the # is used in PHP files only.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 03-29-2007, 03:57 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:53 PM.

   

 
X-Cart forums © 2001-2020