michelle Posted June 7, 2019 Share Posted June 7, 2019 Does anyone know how to show only open tickets to clients (and hide closed ones)? Thank you in advance, MB 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted June 7, 2019 Share Posted June 7, 2019 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. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 7, 2019 Share Posted June 7, 2019 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. feel free to send me a Private Message if you would like me to write a working solution for you. 🙂 0 Quote Link to comment Share on other sites More sharing options...
michelle Posted June 8, 2019 Author Share Posted June 8, 2019 Thank you! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.