Remove the "Products and services purchased" subpanel

Hello,

I would like to remove the “Products and services purchased” subpanel in the “account” module but I can’t find where to remove it in the Studio section.

How can I remove it?
Thanks

In Admin (but not inside Studio) there is a different link called Display Modules and Subpanels where you can change these things.

1 Like

Hi @pgr ,

I removed everything and yet it is still present should it be removed in the code?
Thanks

With a few repairs and refreshes it should go away…

It can’t go away that way as this subpanel is linked to module AOS_Products_Quotes which is not available in Display Modules and Subpanels.
You have to unset products_services_purchased in Accounts subpanels definition.

Hello @blqt
i have quite a similar problem and taking into consideration that i’m a beginner with suitecrm some terms are not familiar to me
How can i unset products_services_purchased in Accounts subpanel definition
Thanks

Create a php file in custom/Extension/modules/Accounts/Ext/Layoutdefs
For example custom/Extension/modules/Accounts/Ext/Layoutdefs/hide_subpanel.php
(the file name is not significant)
In this file, add:

<?php
unset($layout_defs['Accounts']['subpanel_setup']['products_services_purchased']);

Run Repair / Quick Repair

1 Like