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)
-   -   smarty error (https://forum.x-cart.com/showthread.php?t=38565)

varoon10 03-24-2008 03:13 PM

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!

balinor 03-24-2008 03:13 PM

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?

varoon10 03-24-2008 03:22 PM

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!

balinor 03-24-2008 03:24 PM

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.

varoon10 03-24-2008 03:29 PM

Re: smarty error
 
Sweet - that worked. Thanks a lot!


All times are GMT -8. The time now is 02:45 PM.

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