Jump to content
michelle

How to hide close tickets?

Recommended Posts

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

Thank you in advance,

MB

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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. 🙂

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