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)
-   -   Adding a page to help module (https://forum.x-cart.com/showthread.php?t=4821)

ahalliday 10-17-2003 09:58 PM

Adding a page to help module
 
I am very close to solving the following problem but i need a bit of help just to make it work.

I am trying to add couple of pages to the help pane. I can add a link to section i want and i can upload a new TPL. I assume that whatever you put as the section= variable it will call the relevent TPL in the help directory. However when i add whyshop.tpl and then try to link to it, the page does not appear. What am i doing wrong?

/xcart/customer/help.php?section=business&XCARTSESSID=d31e530949ff fa46740a9f03d945d382

Many thanks!
Alex :)

vickys_box 10-18-2003 01:03 AM

The section is just a name, you still need to link that name with the template you want to show. The linking is done in help/index.tpl. Simply add the following before the final {else} statement in that file.

Code:

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


shan 10-18-2003 04:06 AM

also make sure you dont have the session ID on the end of your link


All times are GMT -8. The time now is 01:13 PM.

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