Jump to content

Cpanel Hosting Product Details Page - How to remove items?


craigedmonds

Recommended Posts

  • 2 weeks later...

keep in mind this will be re-added to the template when updated.

To remove the webmail login, use a sidebar hook. Something like this will do. Place this in a php file in whmcs/includes/hooks

<?php
use WHMCS\View\Menu\Item as MenuItem;

add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar)
{
   if (!is_null($primarySidebar->getChild('Service Details Actions'))) {
  $primarySidebar->getChild('Service Details Actions')
       ->removeChild('Login to cPanel');
  $primarySidebar->getChild('Service Details Actions')
       ->removeChild('Login to Webmail');
}
});

Link to comment
Share on other sites

This can be done as well. Take a look at the service details sidebar hook I wrote. Tear that apart, use it to get the service domain, and you can create a link from there.

 

Additionally, take a look at the WHMCS docs on adding a sidebar (specifically social media)

 

Both of these should be excellent resources to get you started through this .

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