Jump to content

Output client name


Tom Wilson

Recommended Posts

Just now, Tom Wilson said:

I'd like to add some text into a page inside WHMCS saying "Hello, <client first name>' - is this possible?

yes.

Just now, Tom Wilson said:

If so, how? 

it depends on what page and where you want to do it! 🙂

one obvious way, and i'm assuming the client is logged in (otherwise knowing their name would be tricky), would be to use {$clientsdetails.firstname) in any of the templates, e.g

Hello, {$clientsdetails.firstname}

depending on the template you want to show this in, you could check if the user is logged in before outputting the welcome message...

you could also use a hook, but that has limited options when specifying where you want to output the message.

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