Jump to content

How can i delete primary sidebar on service product


JuniYadi

Recommended Posts

hello, this is first time to me develop provision module with whmcs, and the module its works perfectly, but in service product section area, i want to delete primary sidebar (overview).

Screenshot_820.jpg

 

something look like this :

Screenshot_821.jpg

 

try with hooks but its not works,

<?php

use WHMCS\View\Menu\Item as MenuItem;

   add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $primarySidebar)
       {
       if (!is_null($primarySidebar->getChild('Service Details Overview'))) {
                   $primarySidebar->removeChild('Manage Reverse DNS');               
       }
});

 

thank you

Link to comment
Share on other sites

try this

 

<?php 

use WHMCS\View\Menu\Item as MenuItem; 

   add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) 
       { 
       if (!is_null($primarySidebar->getChild('Service Details Overview'))) { 
                   $primarySidebar->getChild('Service Details Overview')->removeChild('Manage Reverse DNS');                
       } 
});

Link to comment
Share on other sites

  • 2 weeks later...
try this

 

<?php 

use WHMCS\View\Menu\Item as MenuItem; 

   add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) 
       { 
       if (!is_null($primarySidebar->getChild('Service Details Overview'))) { 
                   $primarySidebar->getChild('Service Details Overview')->removeChild('Manage Reverse DNS');                
       } 
});

 

Not working sir, how to i can include hooks to provision module?

is it correct?

 

sorry i can't attach any picture on this forum.

http://prntscr.com/c61r9y

Link to comment
Share on other sites

try this

 

<?php 

use WHMCS\View\Menu\Item as MenuItem; 

   add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) 
       { 
       if (!is_null($primarySidebar->getChild('Service Details Overview'))) { 
                   $primarySidebar->getChild('Service Details Overview')->removeChild('Manage Reverse DNS');                
       } 
});

 

Not working sir.

 

is it correct for include hooks to provision module?

Screenshot_934.jpg

Screenshot_933.jpg

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