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

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