HostT Posted December 9, 2010 Share Posted December 9, 2010 Hey guys so i'm completely recreating my customer area and i was wondering if there is a list of all the available variables we can use, for instance i'm creating a section that will show number of open tickets, services, etc But i can't find any documentation on WHMCS website about the variables we can use... Does anybody know if there is a list anywhere? The one's i'm talking about are ones like: {$clientstats.numactivetickets} {$clientstats.numdueinvoices} but under the supportticketlist.tpl it has {$numtickets} instead of {$clientstats.numactivetickets} Are there different variables for each page of WHMCS? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
gohigher Posted December 9, 2010 Share Posted December 9, 2010 I'm not 100% on the best or most complete way to do this, but what I do is add the code {debug} to the tpl file you are trying to customize, and you should get a debug window that pops up. The debug window contains a list of the variables that area available to the template scope such as {$clientsstats} array(...) It is a two column list, simply take the first column and the second column and combine as you saw in the other file: {$clientstats.numactivetickets} {$clientsdetails.firstname} {$clientsdetails.email} Hope that helps! Steven | Go Higher 0 Quote Link to comment Share on other sites More sharing options...
HostT Posted December 11, 2010 Author Share Posted December 11, 2010 Awesome that's exactly what i needed, thanks! 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.