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