Hi,
I'm trying to find a way to delete the unused tabs in the view order section in the admin and vendor panels ... I think this should be done manually since there is no option to control these tabs.
The add-on tab is empty, and we need to hide it in our case.
I would appreciate some recommendations here on how to do it.
Thanks,
Hi,
I'm trying to find a way to delete the unused tabs in the view order section in the admin and vendor panels ... I think this should be done manually since there is no option to control these tabs.
The add-on tab is empty, and we need to hide it in our case.
I would appreciate some recommendations here on how to do it.
Thanks,
Hi! You can make simple modification for this case.
Create the app/addons/my_changes/controllers/backend/products.post.php file with the following content:
use Tygh\Registry;$tabs = Registry::get(‘navigation.tabs’);
if ($tabs) {
unset($tabs[‘addons’]);
Registry::set(‘navigation.tabs’, $tabs);
}
Then install and activate the My changes add-on at the Add-ons > Manage add-ons page of your admin panel.
I hope it will help you.
Hi! You can make simple modification for this case.
Create the app/addons/my_changes/controllers/backend/products.post.php file with the following content:
use Tygh\Registry;$tabs = Registry::get(‘navigation.tabs’);
if ($tabs) {
unset($tabs[‘addons’]);
Registry::set(‘navigation.tabs’, $tabs);
}Then install and activate the My changes add-on at the Add-ons > Manage add-ons page of your admin panel.
I hope it will help you.
Hi,
Thanks for the suggestion, I tried your idea, but it deletes the add-on tab on the products and not the order.
I was also able to do the same before by just removing
$tabs['addons'] = [ 'title' => __('addons'), 'js' => true ];
from app/controllers/backend/products.php
The same can be done for categories and companies but for orders it's not possible.
It could be that I have an add-on that is showing that empty tab.
I would appreciate if you can give it a second look.
Thanks.
It was fixed by just creating orders.post.php and use the same logic.
Thanks for the assistance.
Hi,
Thanks for the suggestion, I tried your idea, but it deletes the add-on tab on the products and not the order.
I was also able to do the same before by just removing$tabs['addons'] = [ 'title' => __('addons'), 'js' => true ];from app/controllers/backend/products.php
The same can be done for categories and companies but for orders it's not possible.
It could be that I have an add-on that is showing that empty tab.
I would appreciate if you can give it a second look.
Thanks.
It was fixed by just creating orders.post.php and use the same logic.
Thanks for the assistance.
I'm sorry, it seems like my eyes have failed me :) I was absolutely sure you were asking about the products!
Anyway, I am glad that you have managed to adapt the solution to your needs.