Jump to content

Auto Ticket Reply


JamieErrota

Recommended Posts

Hello,

Happy New Year!

 

I’m trying to get the auto response ticket poster to have a different name. Currently it’s named ‘System’, I’m looking to change this. WHMCS said this is only possible via a custom hook which changes looks at the poster and checks if it’s ‘system’ if so then it changes it.

 

any ideas? 

Link to comment
Share on other sites

20 hours ago, JamieErrota said:

Hello,

Happy New Year!

 

I’m trying to get the auto response ticket poster to have a different name. Currently it’s named ‘System’, I’m looking to change this. WHMCS said this is only possible via a custom hook which changes looks at the poster and checks if it’s ‘system’ if so then it changes it.

 

any ideas? 

Could you share the solution?

Link to comment
Share on other sites

Hello,

For @edvancombr and anyone else who might want to do this. This code was provided by WHMCS directly so I take no credit. Create a hook with the below code:

<?php
use WHMCS\Database\Capsule;

add_hook('TicketAdminReply', 1, function($vars) {

    $newAdmin = 'NEW NAME';

    if ($vars['admin'] == 'System') {
        Capsule::table('tblticketreplies')
        ->where('id',$vars['replyid'])
        ->update(['admin' => $newAdmin]);
    }
});

 

Any problems more than welcome to contact me.

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