omega0011 Posted February 10, 2016 Share Posted February 10, 2016 Hi, in the client area I want to change the link of Open Ticket to another link. I also want to change the Tickets under the Support drop down menu to the same link. I got this code from a suppor ticket <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $navItem = $navItem->getChild('Open Ticket'); if (is_null($navItem)) { return; } $navItem->setUri('https://www.mydomain.com'); }); I named the file hooks.php and put it in whmcs/includes/hooks but I get a 500 error message. What am I doing wrong and what is the code for the Tickets under the Support drop down menu? I am new to all this, thank you. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted February 10, 2016 Share Posted February 10, 2016 it should work this way <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $navItem = $primaryNavbar->getChild('Open Ticket'); if (is_null($navItem)) { return; } $navItem->setUri('https://www.mydomain.com'); }); 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.