Jump to content

Support ticket close only by admin


apignard

Recommended Posts

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,

Link to comment
Share on other sites

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. :)

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