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

Adding Items to HELP section

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-25-2003, 11:45 AM
 
PHPdev PHPdev is offline
 

Member
  
Join Date: Oct 2003
Posts: 18
 

Default Adding Items to HELP section

Was not quite sure where to post this question, but Can someone please explain to me how the "Help" menu section works? I guess I should be a little more specific.

I have seen that the "Privacy Statement", and "Terms and Conditions" sections are text only unlike the "Contact Us" and "Recover Password" sectoins. I too have noticed that the "Contact Us" and "Recover Password" sections have their own form handelers in the help.php file. So where are the text for the other two sections getting set?

How can I add my own section? Why does FAQ, seem to work when I add it, but "asdfasdf" does not?

I know this is problaby a little more involved that just editing templates, but as stated before I did not know where to post this information.

Thank You

PHPDev
Reply With Quote
  #2  
Old 11-25-2003, 08:27 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default

1) edit help/general.tpl and add the following line:

How to shop {include file="buttons/go.tpl"}

this is just a modified copy of another help section span.

2) edit help/index.tpl and add the new section template reference:

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

this is also a modified copy of another help section reference.

3) create the help/hts.tpl and write the text required. To make it fit into dialog use example from the help/about.tpl.
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #3  
Old 11-26-2003, 05:12 AM
 
KathyHS KathyHS is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 143
 

Default

I found this one quite by accident.

I have about 5 FAQ i wanted to add to that list....made sense to add the FAQ to the HELP section under terms and conditions (Edit Terms and conditions in LANGUAGES: TXT: search for "Privacy" and edit that text, search for "terms" and edit that text too for those two text sections)

But to add additional FAQ...this was sooo easy.

Go to your admin area and in the list underneath "edit templates" is a link for "embedded pages".

Click that.

Add new page...and add the html you want for the center column with the FAQ at the top of the list:

Example:

How fast do you ship?

Answer: bla bla bla bla bla bla

TITLE this page: Ship fast?

Click SAVE/SUBMIT

Wah-la! The page is now listed in the help section....and clicking on it shows a page that matches the store with the FAQ in the center column.

No editing of templates.....

It was so easy I happened on it by accident while trying to figure out "embedded pages".

HTH
__________________
X-Cart 4.1.11
Reply With Quote
  #4  
Old 11-26-2003, 06:29 AM
 
PHPdev PHPdev is offline
 

Member
  
Join Date: Oct 2003
Posts: 18
 

Default

KathyHS,

I am running version 3.4.8, and I do not see a link anywhere under "Edit Templates" for Embeded Pages. Now I do see one for Help Files

I am going to attempt BMAWORLD's solution for now.


Thank you
Reply With Quote
  #5  
Old 11-26-2003, 06:33 AM
 
KathyHS KathyHS is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 143
 

Default

Okie, I wasn't clear....

In the same list as "EDIT TEMPLATES" is a link for STATIC PAGES. (Not within the edit templates...but in the same admin list on the right hand side of the page)

Click that link...and then select ADD EMBEDDED PAGE

You can add the text, change the title (starts off titled as PAGE 1) and when you save it...the title is now listed in the HELP section....
__________________
X-Cart 4.1.11
Reply With Quote
  #6  
Old 11-26-2003, 07:14 AM
 
PHPdev PHPdev is offline
 

Member
  
Join Date: Oct 2003
Posts: 18
 

Default

KathyHS,

Ahh ok I see it now... Ill have to give it a shot...


How can I add these new items to the HELP Menu? Edit the help.tpl?

Thank you for all your help...
Reply With Quote
  #7  
Old 11-26-2003, 07:29 AM
 
KathyHS KathyHS is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 143
 

Default

Its automatic. No editing of templates needed.

Just add an embedded page. Titie it what you want to appear in the HELP section:

example: Payment Methods?

and the title of your embedded page appears in the HELP section of customer directory...with the link all set up.

Amazing, eh?
__________________
X-Cart 4.1.11
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 08:00 PM.

   

 
X-Cart forums © 2001-2020