CavalloComm Posted November 12, 2015 Share Posted November 12, 2015 On the left had side widget on the Support page, is there a way to hide the "reply" button in the widget itself? and/or make it conditional on the status the ticket is in? I don't seem to find that actual widget in the template file. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 12, 2015 Share Posted November 12, 2015 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. 1 Quote Link to comment Share on other sites More sharing options...
sentq Posted November 12, 2015 Share Posted November 12, 2015 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(''); } } }); 1 Quote Link to comment Share on other sites More sharing options...
CavalloComm Posted November 12, 2015 Author Share Posted November 12, 2015 Thanks everyone! Awesome! I don't know why I couldn't find that other post. I had been using this in V5 for years - and wouldn't you know it, the day after the upgrade, someone opens a 2 year old ticket to ask a completely different question. 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.