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)
-   -   How to add a new page in Help Zone? (https://forum.x-cart.com/showthread.php?t=30402)

ethan 04-13-2007 04:36 AM

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.

balinor 04-13-2007 04:36 AM

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.

ethan 04-13-2007 04:47 AM

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.

balinor 04-13-2007 04:49 AM

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.

ethan 04-13-2007 04:59 AM

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=...

balinor 04-13-2007 05:04 AM

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.

ethan 04-13-2007 05:39 AM

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. :)

Thomasb134 04-19-2007 07:54 PM

Re: How to add a new page in Help Zone?
 
Thanks for the info -- this mod worked great for me.

n00bert 05-14-2007 07:39 AM

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

Lexninja 12-28-2007 03:52 PM

Re: How to add a new page in Help Zone?
 
Your tutorial is awesome, N00bert! Thanks!


All times are GMT -8. The time now is 01:46 AM.

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