Jump to content

How to hide close tickets?


Recommended Posts

Open templates/{YOUR_TEMPLATE}/supportticketlist.tpl and look for this line:

{foreach from=$tickets item=ticket}

Change it like follows:

{foreach from=$tickets item=ticket}
{if $ticket.statusClass == 'closed'}{continue}{/if}

This way the foreach skips all Closed tickets.

Link to comment
Share on other sites

Hi @michelle

59 minutes ago, michelle said:

Does anyone know how to show only open tickets to clients (and hide closed ones)?

you would have to use an actions hook to do it (depending on how thoroughly you want to do it, e.g what you consider "open", and the theme that you're using) - template edits would not be enough.

for example, Kian's solution would still show the ticket sidebar filter with the number of Closed tickets, plus the other ticket statuses (which you might not consider to be "open")... in any event, you'd lose these template modification after updating WHMCS - with working hook(s), this would not be the case.

qEjbVkZ.png

feel free to send me a Private Message if you would like me to write a working solution for you. 🙂

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