Jump to content

Remove a "main" panel from clientarea


Go to solution Solved by Saroha,

Recommended Posts

Hello everyone,

I am currently customizing the clientarea of my self-hosted install of WHMCS and so far I had no trouble removing entries from the sidebar and other locations. However, I have not been able to find a way to remove one of the four color-coded panels in the main clientarea:
image.png.bf56937a70292b44c8ce993f6610d22c.png
My goal is to specifically remove the "Quotes" panel, which I assumed could be done via https://docs.whmcs.com/9-0/customization/client-area-customization-tutorials/homepage-panels/remove-a-panel/
, but that is apparently not the case since these panels don't have a "menuitemname" tag in HTML like the other elements on the page, so I have no idea what name to put for the hook. I already tried "Quote", but that did not work. 

The reason for why I want this panel gone is that I will not be offering Quotes and therefore have no need for it. If there is a specific setting for this or a different way to do it via a hook, please let me know!

Link to comment
Share on other sites

  • 3 weeks later...
  • Solution

Find the clientareahome.tpl file into your selected template directory. in this file you will find the code 

{else}
<div class="col-sm-3 col-xs-6 tile" onclick="window.location='clientarea.php?action=quotes'">
  <a href="clientarea.php?action=quotes">
    <div class="icon"><i class="far fa-file-alt"></i></div>
    <div class="stat">{$clientsstats.numquotes}</div>
    <div class="title">{$LANG.quotes}</div>
    <div class="highlight bg-color-green"></div>
  </a>
</div>

just remove or comment it to remove it from this section

 

Link to comment
Share on other sites

I see, thank you! Is there no "proper" way to modify these panels? All other elements in the clientarea can be changed via hooks, so I found it odd that there doesn't seem to be any way to do the same for these panels. I might want to replace the quotes panel with a custom one so it would be nice to be able to do it in the same fashion as the other elements in there. But if that's not an option I can just go via the tpl files of course.

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