Jump to content
xedro99

Help with WHMCS template code

Recommended Posts

Hi there,

 

I am wondering if it is possible to display a text on the client area if the user has no active service.

I want to display an <p> in the client area if the user has no active service in his/her account, how shall I proceed ahead with this? what {if} code should I use in the template file of the client area?

 

Thanks!

xedro

Share this post


Link to post
Share on other sites

if you were going to do this in a template, it would probably be...

{if $loggedin && $clientsstats.productsnumactive eq 0}do something{/if}

Share this post


Link to post
Share on other sites
On 11/4/2019 at 6:56 PM, brian! said:

if you were going to do this in a template, it would probably be...


{if $loggedin && $clientsstats.productsnumactive eq 0}do something{/if}

Tried it, the entire page becomes blank as soon as I use this.

Share this post


Link to post
Share on other sites
4 minutes ago, xedro99 said:

Tried it, the entire page becomes blank as soon as I use this.

I don't see why - any errors logged in the activity log??

perhaps there are invalid characters in the post, try either of these

{if $loggedin && $clientsstats.productsnumactive eq 0}do something{/if}
{if $loggedin && $clientsstats.productsnumactive == 0}do something{/if}

s6NstkT.png

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