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)
-   -   I am stumped trying to make a new "help" file (https://forum.x-cart.com/showthread.php?t=4099)

lizlarry 08-23-2003 10:36 AM

I am stumped trying to make a new "help" file
 
I am trying to add a help file button called secure ordering.

1. I created a new file called secureordering.tpl in the help folder

2. code contains:

{* $Id: secureordering.tpl,v 1.6 2002/05/20 06:55:20 lucky Exp $ *}
{capture name=dialog}
Here's all the details about our secure ordering!!
{/capture}
{include file="dialog.tpl" title="Secure Ordering" content=$smarty.capture.dialog extra="width=100%"}

3. in help.tpl I added the code:


{$lng.lbl_secureordering}


The error I receive is:

Warning: Smarty error: unable to read template resource: "help/secureordering.tpl " in /usr/www/users/bosmed/cart/xcart/Smarty-2.3.0/Smarty.class.php on line 589


any help would be most appreciated.
Liz

snorocket 08-23-2003 11:11 AM

watch out
 
make a file called secureordering.tpl and put it in the /help template dir and in the secureordering.tpl file it should say


{* $Id: secureordering.tpl,v 1.5 2003/08/23 06:55:20 lucky Exp $ *}



{capture name=dialog}
{$lng.txt_secureordering}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_secureordering content=$smarty.capture.dialog extra="width=100%"}


then make a txt_secureordering file in the text section admin languages section and copy & paste whatever html code you want into this txt_secureordering file

then in /help/index.tpl you need to add

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

and it should work, let us know, the url path would look similar to
yourstore.com/customer/help.php?section=secureordering

lizlarry 08-23-2003 03:15 PM

The url seems to be okay...and I followed your instructions....
still doesn't work, however...

Does the error message give any clues?

Warning: Smarty error: unable to read template resource: "help/secureordering.tpl " in /usr/www/users/bosmed/cart/xcart/Smarty-2.3.0/Smarty.class.php on line 589

lizlarry 08-23-2003 04:23 PM

I finally got it to work.
thanks for your help.
Liz


All times are GMT -8. The time now is 09:54 PM.

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