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

How to add a new page in Help Zone?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-13-2007, 04:36 AM
 
ethan ethan is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

Default How to add a new page in Help Zone?

How to add a new page under Help Zone? I'd like to creat a warranty under help zone, just like the Terms & Conditions page, the link should be sth like /help.php?section=warranty ? Thanks.
__________________
X-Cart Gold v4.018
Reply With Quote
  #2  
Old 04-13-2007, 04:36 AM
 
balinor balinor is offline
 

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

Default Re: How to add a new page in Help Zone?

Go to 'Static Pages' and create a new Embedded Static Page. It will show as a link in the help menu.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-13-2007, 04:47 AM
 
ethan ethan is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

Default Re: How to add a new page in Help Zone?

Thank you for your fast reply. If I create a new Embedded Static Page, it's under the Help Menu, but it's not under the help zone, is it possible to creat it under help zone and the link is sth like /help.php?section=conditions? Maybe I need to edit the help.php to add a section? Thanks.
__________________
X-Cart Gold v4.018
Reply With Quote
  #4  
Old 04-13-2007, 04:49 AM
 
balinor balinor is offline
 

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

Default Re: How to add a new page in Help Zone?

Just add a link to it on the help zone page. It is skin1/help/general.tpl. Copy the link from the help menu.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-13-2007, 04:59 AM
 
ethan ethan is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

Default Re: How to add a new page in Help Zone?

Quote:
Originally Posted by balinor
Just add a link to it on the help zone page. It is skin1/help/general.tpl. Copy the link from the help menu.
But the page I creat from static page got a difference link, doesn't look like help.php?section=...
__________________
X-Cart Gold v4.018
Reply With Quote
  #6  
Old 04-13-2007, 05:04 AM
 
balinor balinor is offline
 

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

Default Re: How to add a new page in Help Zone?

Like I said...copy the link. It won't be the same as the help section links. It doesn't matter.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 04-13-2007, 05:39 AM
 
ethan ethan is offline
 

Member
  
Join Date: Jan 2007
Posts: 10
 

Default Re: How to add a new page in Help Zone?

Quote:
Originally Posted by balinor
Like I said...copy the link. It won't be the same as the help section links. It doesn't matter.
Thank you for your knidly help.
__________________
X-Cart Gold v4.018
Reply With Quote
  #8  
Old 04-19-2007, 07:54 PM
 
Thomasb134 Thomasb134 is offline
 

X-Adept
  
Join Date: Apr 2007
Location: USA
Posts: 789
 

Default Re: How to add a new page in Help Zone?

Thanks for the info -- this mod worked great for me.
__________________
Thomas / USA
XCart V4.4.5 Gold
XCart Mobile V1.4.12
XCart X-PDF
XCart X-HotProducts
AlteredCart Checkout One (One Page Checkout)
BCSE Back In Stock
CFL Holiday Message
CFL System Message
Smack Digital (WebsiteCM) Remember Anon Carts
xcartmods Testimonials
xcartmods reCAPTCHA for X-Cart Classic
Unix, PHP 7.0 (patched 5.4).
MySQL 5.6
Reply With Quote
  #9  
Old 05-14-2007, 07:39 AM
  n00bert's Avatar 
n00bert n00bert is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 46
 

Default Re: How to add a new page in Help Zone?

Here's what I did for extra help pages in 4.1.6:

Say you want to create a warranty information page.

1. create a new language variable in admin > languages. call it warranty
2. create a file called warranty.tpl and add it to /skin1/help/
3. open warranty.tpl and copy this code into it:
Code:
{capture name=dialog} ...your code... {/capture} {include file="dialog.tpl" title=$lng.lbl_warranty content=$smarty.capture.dialog extra='width="100%"'}

4. open index.tpl which is also in /skin1/help/ and add this code:

Code:
{elseif $section eq "warranty"} {include file="help/warranty.tpl"}

5. add the following to general.tpl, which is also in /skin1/help/, where you want the button to display on the help.php page:
Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_warranty href="help.php?section=warranty"}

This way when you click a button named warranty, your warranty info appears in a dialog box with a title, and is integrated with the rest of your site.

You can see it in action on http://www.urban-kings.com/help.php

regards,
n00bert
__________________
Version 4.1.6 Gold

urban-kings.com
urbanwear and street fashion specialist
Reply With Quote
  #10  
Old 12-28-2007, 03:52 PM
 
Lexninja Lexninja is offline
 

Newbie
  
Join Date: Dec 2007
Posts: 2
 

Default Re: How to add a new page in Help Zone?

Your tutorial is awesome, N00bert! Thanks!
__________________
X-Cart Gold 4.1.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:55 PM.

   

 
X-Cart forums © 2001-2020