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

I am stumped trying to make a new "help" file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-23-2003, 10:36 AM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default 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
Reply With Quote
  #2  
Old 08-23-2003, 11:11 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default 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
Reply With Quote
  #3  
Old 08-23-2003, 03:15 PM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default

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
Reply With Quote
  #4  
Old 08-23-2003, 04:23 PM
 
lizlarry lizlarry is offline
 

Advanced Member
  
Join Date: Jul 2003
Posts: 45
 

Default

I finally got it to work.
thanks for your help.
Liz
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:22 AM.

   

 
X-Cart forums © 2001-2020