Jump to content

Remove Reply Button on Support Tickets Page?


CavalloComm

Recommended Posts

it's a sidebar, not a widget! :)

 

generally, they're modified by action hooks, so take a look at the thread below as it relevant to your question...

 

http://forum.whmcs.com/showthread.php?92894-Ticket-Closed-Stop-customer-from-re-opening&p=437631#post437631

 

I guess for your question, rather than removing the footer, you could just create a new footer with only a close button.

Link to comment
Share on other sites

here is how to remove it :)

 

<?php

use WHMCS\View\Menu\Item as MenuItem;


add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar)
{

   global $status;

   $status = trim(strip_tags($status));

   if (!is_null($primarySidebar->getChild('Ticket Information'))) {

       if ($status==="Closed-Locked"){
           $primarySidebar->getChild('Ticket Information')->setFooterHtml('');
       }

   }
});

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