Jump to content

Hide terminated / cancelled products in client area?


Recommended Posts

As far as I know you can't do it, but we'd love to have this an an option that the client could choose. We have clients with large numbers of domains (for example) that are canceled and they would prefer not to see them. If there was a client preference to not display canceled, fraud, terminated services it would be great.

Link to comment
Share on other sites

Yes, we know we could do it all in templates but it would be nice if it was just a feature. Not all clients want it hidden, so we have to add custom client fields that they can check/uncheck and then template code to check how the custom field is set and the suppress the display if needed. That is extra code for data that's already been grabbed from the database. If it was handled within WHMCS the data would have never been selected from the database.

Link to comment
Share on other sites

  • 10 months later...
  • 10 months later...
Yes, relatively easy, put an {if} checking the status in your tpl's :D

 

I think the file to edit is: /templates/yourtemplatename/clientareaproductdetails.tpl

 

Then adding something like:

{if $loggedin}

User is logged in so display client only information

{else}

User is not logged in so display this

{/if}

 

but instead of login status add productstatus == Termianted, but im not yet sure about right syntax and exact placement in template file.

 

Update: according to whmcs, that variable should be: $domainstatus

 

{if $domainstatus eq "Terminated"}

do your hiding here

{/if}

 

Please can anyone contribute where to add opening IF and closing IF?

 

Isnt it to be added before:

<div data-toggle="tab" id="tab1" class="tab-content">

 

?

Edited by postcd
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