Jump to content
Tom Wilson

Output client name

Recommended Posts

Hello!

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

Thank you 🙂

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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