| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
smarty error | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||
|
|||||||
![]() Sweet - that worked. Thanks a lot!
__________________
Using X-Cart Pro v4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|