ServWise.com Posted April 16, 2009 Share Posted April 16, 2009 I'm trying to include another smarty template inside one of the standard smarty order form templates (\Templates\orderforms\default\products.tpl). I'm using {include file="filename.tpl"} and the template is in the same folder as the template it is included in. Unfortunately i'm not having much luck with this and it wont show the template include code. Can anyone help. Am I pathing it wrongly? 0 Quote Link to comment Share on other sites More sharing options...
ServWise.com Posted April 20, 2009 Author Share Posted April 20, 2009 Guess no one knows why this does not work? MATT if you see this please hhhheeeelllllpppp. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted April 20, 2009 Share Posted April 20, 2009 using the full path - works fine for us 0 Quote Link to comment Share on other sites More sharing options...
ServWise.com Posted April 20, 2009 Author Share Posted April 20, 2009 Do you mean full path from website root or full path from server root ie {include file='/whmcs/templates/etc/etc.tpl'} or {include file='/home/mysite/public_html/whmcs/templates/etc/etc.tpl'} 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 20, 2009 Share Posted April 20, 2009 Try: {include file='../../etc/etc.tpl'} 0 Quote Link to comment Share on other sites More sharing options...
ServWise.com Posted April 21, 2009 Author Share Posted April 21, 2009 It is alright I worked it out through trial and error. I needed to use a relative path from the templates folder e.g. {include file='orderforms/web20cart/windows-std.tpl'} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.