Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 12/02/2019 in all areas

  1. 1 point
    Welcome to WHMCS.Community JustAnotherUser! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.
  2. 1 point
    yes, ticket status can be obtained from the $status variable, but it contains HTML code along with the status value - so you check for the $status variable containing the required string and not equal to it... <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) { global $status; if (strpos($status, Lang::trans('supportticketsstatusonhold')) !== false) { $footer = '<div><button class="btn btn-success btn-sm btn-block" onclick="jQuery(\'#ticketReply\').click()"><i class="fa fa-pencil"></i> Reply</button></div>'; if (!is_null($primarySidebar->getChild('Ticket Information'))) { $primarySidebar->getChild('Ticket Information') ->setFooterHtml($footer); } } }); ...and because the ticket status output uses the client's language choice, i've used the Lang:trans feature to ensure it should work in all the default languages.
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated