apignard Posted November 2, 2014 Share Posted November 2, 2014 Hello, Is there a way to have one support ticket dept to never been closed by customer only by admin. I have an abuse dept ticket and i want review all abuse ticket not answered by customers. Some customer can close it manually or status can currently close it (answered etc) A hook can do it but wonder is there currently a ready solution for this. Regards, 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 2, 2014 Share Posted November 2, 2014 i'm not aware of any ready solutions, but as you say, a hook or template edit should do it... I posted a similar bit of coding in the thread below to remove the reply button from some closed tickets... http://forum.whmcs.com/showthread.php?92894-Ticket-Closed-Stop-customer-from-re-opening ... but what you're trying to do is slightly easier in that WHMCS already has a variable that it uses to see if the close button should be shown - $showclosebutton - and it is usually set to true. I don't think there is any method in the admin area to disable this for a specific dept. so all you practically need is an {if} statement added anywhere on viewticket.tpl *before* the first close button is called, e.g. {if $department eq "Abuse"}{assign var="showclosebutton" value=false}{/if} and that should disable the close button for that department. I think technically the customer could still close the ticket if they added the close ticket variable in the URL, but I doubt they would know that. 0 Quote Link to comment Share on other sites More sharing options...
apignard Posted November 2, 2014 Author Share Posted November 2, 2014 Yes but as you said doubt will happen. So i need create new ticket state of answered so ticket won't auto close too and modify the tpl will try that's thanks a lot for the tips 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.