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

smarty error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-24-2008, 03:13 PM
 
varoon10 varoon10 is offline
 

Newbie
  
Join Date: Mar 2008
Posts: 3
 

Default smarty error

I'm new to x-cart, and I was trying to create a new template ( a .tpl file) just to play around. I did an include of that file (its called van.tpl) in a pre-existing xcart template, and I got this error:

Warning: Smarty error: unable to read resource: "van.tpl" in /Users/vs/Sites/xcart_Pro/Smarty-2.6.12/Smarty.class.php on line 1095

I would guess that I have to take some extra step in order to 'register' the new template, or is there something else I'm missing here?? I read somewhere that smarty templates are automatically compiled, so I'm not sure what I'm doing wrong.

Thanks for your help!
__________________
Using X-Cart Pro v4.1.9
Reply With Quote
  #2  
Old 03-24-2008, 03:13 PM
 
balinor balinor is offline
 

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

Default Re: smarty error

That usually means you called it incorrectly, or put it in the wrong spot. How did you call it and where is the file?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-24-2008, 03:22 PM
 
varoon10 varoon10 is offline
 

Newbie
  
Join Date: Mar 2008
Posts: 3
 

Default Re: smarty error

wow fast response! ... i called it from /customer/main/register.tpl, I just did this:

{include file="van.tpl"}

The file van.tpl itself is in the /customer/main/ directory as well, the code inside that file is:

<table>

<tr>
<td>
HELLO
</td>
</tr>
</table>

Thanks!
__________________
Using X-Cart Pro v4.1.9
Reply With Quote
  #4  
Old 03-24-2008, 03:24 PM
 
balinor balinor is offline
 

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

Default Re: smarty error

That's the problem, if you didn't call it with a sub-directory, it needs to go in the main skin1/ directory. So just move the van.tpl file there and that should work.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-24-2008, 03:29 PM
 
varoon10 varoon10 is offline
 

Newbie
  
Join Date: Mar 2008
Posts: 3
 

Default Re: smarty error

Sweet - that worked. Thanks a lot!
__________________
Using X-Cart Pro v4.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 07:17 AM.

   

 
X-Cart forums © 2001-2020