Jump to content

Template variables? Is there a list?


HostT

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated