WebNest Posted August 9, 2023 Share Posted August 9, 2023 Hello, So I have gone ahead and created a hook to remove the side menu during checkout. <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { $client = Menu::context('client'); if (is_null($client) and (!is_null($secondarySidebar->getChild('Categories')))) { $secondarySidebar->removeChild('Categories'); } if (is_null($client) and (!is_null($secondarySidebar->getChild('Actions')))) { $secondarySidebar->removeChild('Actions'); } if (is_null($client) and (!is_null($secondarySidebar->getChild('Choose Currency')))) { $secondarySidebar->removeChild('Choose Currency'); } }); The only issue I have come across though is that the rest of the checkout still uses the right hand side of the page. I have looked within the standard_cart directory and cannot find anything to change this any ideas on how to complete this please? Thank you 0 Quote Link to comment Share on other sites More sharing options...
WebNest Posted August 15, 2023 Author Share Posted August 15, 2023 Hey, Any suggestions would be really helpful. Sorry for the late posting I have had to wait for my posts to be approved. Thank you 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.